Raw
1 import { createContext } from "react"
2
3 type SidebarContextValue = {
4 desktop: boolean
5 mobile: boolean
6 toggle: (view: "desktop" | "mobile") => void
7 }
8
9 export const SidebarContext = createContext<SidebarContextValue | null>(null)