1
0
Fork 0
freesewing/sites/shared/hooks/use-view.mjs
2023-09-29 16:01:27 +02:00

9 lines
263 B
JavaScript

// __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)
}