mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-02-04 04:30:07 +00:00
13 lines
280 B
TypeScript
13 lines
280 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,
|
|
);
|