diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-10-13 00:38:37 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-10-13 00:38:37 +0800 |
| commit | 433e08f2f798b4c04d57cd2d61b16a58aa5196be (patch) | |
| tree | 699df47962e2fc921c9ddde8a034f41af92b3c63 /components/theme-provider.tsx | |
| parent | 308eb96365a7cee0ebc8118673c3b6c85497ce3e (diff) | |
core: added home page
Diffstat (limited to 'components/theme-provider.tsx')
| -rw-r--r-- | components/theme-provider.tsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/theme-provider.tsx b/components/theme-provider.tsx new file mode 100644 index 0000000..6d17554 --- /dev/null +++ b/components/theme-provider.tsx @@ -0,0 +1,9 @@ +"use client" + +import * as React from "react" +import { ThemeProvider as NextThemesProvider } from "next-themes" +import { type ThemeProviderProps } from "next-themes/dist/types" + +export function ThemeProvider({ children, ...props }: ThemeProviderProps) { + return <NextThemesProvider {...props}>{children}</NextThemesProvider> +} |
