mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-02-03 20:20:12 +00: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)
|