setup-ui-template

This commit is contained in:
phaichayon
2026-04-17 11:10:08 +07:00
parent 0dcbb98f4c
commit 1aa871cdf9
98 changed files with 12704 additions and 215 deletions

View File

@@ -1,13 +1,11 @@
'use client';
import { ClerkProvider } from '@clerk/nextjs';
import { dark } from '@clerk/themes';
import { useTheme } from 'next-themes';
import React from 'react';
import { ActiveThemeProvider } from '../active-theme';
"use client";
import { useTheme } from "next-themes";
import React from "react";
import { ActiveThemeProvider } from "../active-theme";
export default function Providers({
activeThemeValue,
children
children,
}: {
activeThemeValue: string;
children: React.ReactNode;
@@ -18,13 +16,7 @@ export default function Providers({
return (
<>
<ActiveThemeProvider initialTheme={activeThemeValue}>
<ClerkProvider
appearance={{
baseTheme: resolvedTheme === 'dark' ? dark : undefined
}}
>
{children}
</ClerkProvider>
{children}
</ActiveThemeProvider>
</>
);