hlsitechbot / src /contexts /SidebarContext.ts
hlsitech's picture
Upload 93 files
7bbd534 verified
raw
history blame contribute delete
284 Bytes
import { createContext, Dispatch, SetStateAction } from 'react';
interface SidebarContextType {
toggleSidebar: boolean;
setToggleSidebar: Dispatch<SetStateAction<boolean>>;
sidebarWidth?: number;
}
export const SidebarContext = createContext<Partial<SidebarContextType>>({});