mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
Move to TanStack Start from Next.js (#184)
This commit is contained in:
7
web/app/store/sidebar.ts
Normal file
7
web/app/store/sidebar.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { atom } from "jotai"
|
||||
|
||||
export const isCollapseAtom = atom(false)
|
||||
export const toggleCollapseAtom = atom(
|
||||
(get) => get(isCollapseAtom),
|
||||
(get, set) => set(isCollapseAtom, !get(isCollapseAtom)),
|
||||
)
|
||||
Reference in New Issue
Block a user