mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-09-20 02:00:15 +00:00
11 lines
266 B
TypeScript
11 lines
266 B
TypeScript
import { createContext } from "react"
|
|
|
|
export interface CommandContextType {
|
|
isOpen: boolean
|
|
openCommand: () => void
|
|
closeCommand: () => void
|
|
toggleCommand: () => void
|
|
}
|
|
|
|
export const CommandContext = createContext<CommandContextType | undefined>(undefined)
|