Files
nezha-dash-v1/src/context/command-context.ts
T

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)