mirror of
https://github.com/fccview/cronmaster.git
synced 2026-01-06 12:58:54 -05:00
27 lines
560 B
TypeScript
27 lines
560 B
TypeScript
'use client'
|
|
|
|
import { ThemeProvider as NextThemesProvider } from 'next-themes';
|
|
import { type ThemeProviderProps } from 'next-themes/dist/types';
|
|
|
|
export const ThemeProvider = ({ children, ...props }: ThemeProviderProps) => {
|
|
return (
|
|
<NextThemesProvider
|
|
attribute="data-webtui-theme"
|
|
defaultTheme="light"
|
|
themes={['light', 'dark']}
|
|
value={{
|
|
light: 'catppuccin-latte',
|
|
dark: 'catppuccin-mocha',
|
|
}}
|
|
disableTransitionOnChange
|
|
{...props}
|
|
>
|
|
{children}
|
|
</NextThemesProvider>
|
|
);
|
|
}
|
|
|
|
|
|
|
|
|