mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-02-04 12:40:10 +00:00
feat: refactor overview button
This commit is contained in:
12
src/context/status-context.ts
Normal file
12
src/context/status-context.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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,
|
||||
);
|
||||
Reference in New Issue
Block a user