wip(org): Started working on v3 workbench
This commit is contained in:
parent
bd3ce90e1a
commit
0dece4d70e
27 changed files with 1332 additions and 636 deletions
8
sites/shared/hooks/use-view.mjs
Normal file
8
sites/shared/hooks/use-view.mjs
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { useAtom } from 'jotai'
|
||||
import { atomWithHash } from 'jotai-location'
|
||||
|
||||
const viewAtom = atomWithHash('view', 'draft')
|
||||
|
||||
export const useView = () => {
|
||||
return useAtom(viewAtom)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue