mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 01:21:56 +08:00
11 lines
270 B
TypeScript
11 lines
270 B
TypeScript
import { createContext } from "react"
|
|
|
|
export type Status = "all" | "online" | "offline"
|
|
|
|
export interface StatusContextType {
|
|
status: Status
|
|
setStatus: (status: Status) => void
|
|
}
|
|
|
|
export const StatusContext = createContext<StatusContextType | undefined>(undefined)
|