mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 22:31:12 -05:00
Implement robust error handling, safety checks for data structures, and state management improvements across various components to prevent runtime errors and enhance user experience. Replit-Commit-Author: Agent Replit-Commit-Session-Id: a71e826a-1d38-4b6e-a34f-fbf5ba1f1b25 Replit-Commit-Checkpoint-Type: intermediate_checkpoint
14 lines
352 B
TypeScript
14 lines
352 B
TypeScript
import { createContext } from "react";
|
|
|
|
export type SidebarContext = {
|
|
state: "expanded" | "collapsed";
|
|
open: boolean;
|
|
setOpen: (open: boolean) => void;
|
|
openMobile: boolean;
|
|
setOpenMobile: (open: boolean) => void;
|
|
isMobile: boolean;
|
|
toggleSidebar: () => void;
|
|
};
|
|
|
|
export const SidebarContext = createContext<SidebarContext | null>(null);
|