silverwolf-x's picture
download
raw
583 Bytes
import {
createContext,
useContext,
type Dispatch,
type SetStateAction,
} from 'react'
export type PanelStateKind =
| 'preferences'
| 'route-type'
| 'segment-explorer'
| 'panel-selector'
| 'instant-navs'
export const PanelRouterContext = createContext<{
panel: PanelStateKind | null
setPanel: Dispatch<SetStateAction<PanelStateKind | null>>
triggerRef: React.RefObject<HTMLButtonElement | null>
selectedIndex: number
setSelectedIndex: Dispatch<SetStateAction<number>>
}>(null!)
export const usePanelRouterContext = () => useContext(PanelRouterContext)

Xet Storage Details

Size:
583 Bytes
·
Xet hash:
df8f5744ddf1d8f5bd2389fdaa1546d47f33ddb2c80f24d297e3eee15e5fe721

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.