Files
kfpa-cx-dash-front/src/store/jotai/layout.ts

12 lines
335 B
TypeScript

"use client";
import { createLocalStorageAtom } from "@/store/jotai/utils";
import { StorageKeys } from "@/store/storage/storage-keys";
export type LayoutSelectedMenuState = Record<string, string>;
export const layoutSelectedMenuAtom = createLocalStorageAtom<LayoutSelectedMenuState>(
StorageKeys.LayoutSelectedMenu,
{},
);