ultisuite-client/components/suite/client-theme-shell.tsx
R3D347HR4Y d6d18f911b
Some checks failed
E2E / Playwright e2e (push) Has been cancelled
Lots of stuff and mobile app
2026-06-17 00:13:28 +02:00

20 lines
534 B
TypeScript

"use client"
import { ThemeProvider } from "@/components/theme-provider"
import { ClientThemeApplier } from "@/components/client-theme-applier"
/** Thème clair/sombre client (localStorage), partagé sur toute la web app. */
export function ClientThemeShell({ children }: { children: React.ReactNode }) {
return (
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
storageKey="ultisuite-next-themes-cache"
>
{children}
<ClientThemeApplier />
</ThemeProvider>
)
}