summaryrefslogtreecommitdiff
path: root/components/theme-provider.tsx
diff options
context:
space:
mode:
authorYuren Hao <97327730+YurenHao0426@users.noreply.github.com>2025-02-02 23:59:29 -0600
committerGitHub <noreply@github.com>2025-02-02 23:59:29 -0600
commit1774317d667aed94b2a2f0acae885ce9420de8e2 (patch)
tree71ca71920e68a43536bc58085ebc96e193db776a /components/theme-provider.tsx
Add files via uploadHEADmain
initialization
Diffstat (limited to 'components/theme-provider.tsx')
-rw-r--r--components/theme-provider.tsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/components/theme-provider.tsx b/components/theme-provider.tsx
new file mode 100644
index 0000000..55c2f6e
--- /dev/null
+++ b/components/theme-provider.tsx
@@ -0,0 +1,11 @@
+'use client'
+
+import * as React from 'react'
+import {
+ ThemeProvider as NextThemesProvider,
+ type ThemeProviderProps,
+} from 'next-themes'
+
+export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
+ return <NextThemesProvider {...props}>{children}</NextThemesProvider>
+}