diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-23 14:33:28 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-23 14:59:43 +0000 |
| commit | 47bd449fbe50a7b423db860ee6a34a7a3f7c3bb4 (patch) | |
| tree | 50ba6f327644ff33f75c2eb03dc886378c33778e /apps/web/components/theme-provider.tsx | |
| parent | b552f601dcb1d63c63517cdbdc28cbf9bc4ab1ce (diff) | |
| download | karakeep-47bd449fbe50a7b423db860ee6a34a7a3f7c3bb4.tar.zst | |
feature(web): Add dark mode support
Diffstat (limited to 'apps/web/components/theme-provider.tsx')
| -rw-r--r-- | apps/web/components/theme-provider.tsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/web/components/theme-provider.tsx b/apps/web/components/theme-provider.tsx new file mode 100644 index 00000000..8efcd93b --- /dev/null +++ b/apps/web/components/theme-provider.tsx @@ -0,0 +1,9 @@ +"use client"; + +import type { ThemeProviderProps } from "next-themes/dist/types"; +import * as React from "react"; +import { ThemeProvider as NextThemesProvider } from "next-themes"; + +export function ThemeProvider({ children, ...props }: ThemeProviderProps) { + return <NextThemesProvider {...props}>{children}</NextThemesProvider>; +} |
