mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 08:41:37 +00:00
23 lines
406 B
TypeScript
23 lines
406 B
TypeScript
'use client';
|
|
|
|
import { ThemeProvider } from 'next-themes';
|
|
import { ReactNode } from 'react';
|
|
|
|
export default function RUAThemeProvider({
|
|
children,
|
|
}: {
|
|
children: ReactNode;
|
|
}) {
|
|
return (
|
|
<ThemeProvider
|
|
attribute="class"
|
|
storageKey="rua-theme"
|
|
themes={['latte', 'mocha']}
|
|
enableSystem={false}
|
|
defaultTheme="latte"
|
|
>
|
|
{children}
|
|
</ThemeProvider>
|
|
);
|
|
}
|