1
0
Fork 0
freesewing/sites/shared/hooks/use-view.mjs
2023-05-08 19:28:03 +02:00

8 lines
187 B
JavaScript

import { useAtom } from 'jotai'
import { atomWithHash } from 'jotai-location'
const viewAtom = atomWithHash('view', 'draft')
export const useView = () => {
return useAtom(viewAtom)
}