vite-pages-theme-doc
Version:
A document theme for vite-plugin-react-pages.
15 lines (12 loc) • 406 B
text/typescript
import { createContext } from 'react'
import type React from 'react'
export interface LayoutContextValue {
screenWidth: Record<string, boolean | undefined>
isSlideSiderOpen: boolean
setIsSlideSiderOpen: React.Dispatch<React.SetStateAction<boolean>>
}
export const LayoutContext = createContext<LayoutContextValue>({
screenWidth: {},
isSlideSiderOpen: false,
setIsSlideSiderOpen: () => {},
})