16 lines
366 B
TypeScript
16 lines
366 B
TypeScript
import { atomWithWebStorage } from '@/lib/jotai-helper';
|
|
import { atom } from 'jotai';
|
|
|
|
export const desktopSidebarAtom = atomWithWebStorage('showSidebar', true);
|
|
|
|
export const desktopAsideAtom = atom(false);
|
|
|
|
type AsideStateType = {
|
|
tab: string,
|
|
isAsideOpen: boolean,
|
|
}
|
|
|
|
export const asideStateAtom = atom<AsideStateType>({
|
|
tab: '',
|
|
isAsideOpen: false,
|
|
});
|