1
0
Fork 0
freesewing/sites/shared/hooks/use-view.mjs

10 lines
263 B
JavaScript
Raw Normal View History

2023-09-29 16:01:27 +02:00
// __SDEFILE__ - This file is a dependency for the stand-alone environment
import { useAtom } from 'jotai'
import { atomWithHash } from 'jotai-location'
const viewAtom = atomWithHash('view', 'draft')
export const useView = () => {
return useAtom(viewAtom)
}