mirror of
https://github.com/khairul169/code-share.git
synced 2025-04-29 00:59:37 +07:00
12 lines
227 B
TypeScript
12 lines
227 B
TypeScript
import { createStore } from "zustand";
|
|
|
|
type SidebarStore = {
|
|
expanded: boolean;
|
|
toggle: (toggle?: boolean) => void;
|
|
};
|
|
|
|
export const sidebarStore = createStore<SidebarStore>(() => ({
|
|
expanded: false,
|
|
toggle() {},
|
|
}));
|