feat: implements next-themes
Adds `next-themes` to allow users to switch between light and dark themes.
This commit is contained in:
parent
b81210d2ea
commit
a56b6829a2
6 changed files with 34 additions and 6 deletions
11
src/components/theme-provider.tsx
Normal file
11
src/components/theme-provider.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import { ThemeProvider as NextThemesProvider } from 'next-themes';
|
||||
|
||||
export function ThemeProvider({
|
||||
children,
|
||||
...props
|
||||
}: React.ComponentProps<typeof NextThemesProvider>) {
|
||||
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue