Skip to content

Commit

Permalink
✨ Add Theme Provider
Browse files Browse the repository at this point in the history
  • Loading branch information
haseakito committed Jul 30, 2023
1 parent 2c8e020 commit f25347c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions components/Provider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use client'

import React, { ReactElement } from 'react'
import { ThemeProvider } from 'next-themes'

export function Provider({ children } : { children: ReactElement }) {
return (
<ThemeProvider
defaultTheme='system'
enableSystem
>
{ children }
</ThemeProvider>
)
}

0 comments on commit f25347c

Please sign in to comment.