request list + structure
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { create } from "zustand";
|
||||
import { persist } from "zustand/middleware";
|
||||
import type { SharedStoreType } from "../types/Types";
|
||||
|
||||
export const useSharedStore = create<SharedStoreType>()(
|
||||
persist(
|
||||
(set): SharedStoreType => ({
|
||||
openSidebar: false,
|
||||
setOpenSidebar: (open) => set({ openSidebar: open }),
|
||||
}),
|
||||
{
|
||||
name: "negareh-share-store",
|
||||
}
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user