mirror of
https://github.com/ManInDark/HabitTrove.git
synced 2026-01-20 22:24:28 +01:00
* Added jotai * cache settings by using jotai state * use hydrateAtom with SSR * remove useSettings * fix test
12 lines
193 B
TypeScript
12 lines
193 B
TypeScript
'use client'
|
|
|
|
import { Provider } from 'jotai'
|
|
|
|
export const JotaiProvider = ({ children }: { children: React.ReactNode }) => {
|
|
return (
|
|
<Provider>
|
|
{children}
|
|
</Provider>
|
|
)
|
|
}
|