feat: refactor overview button

This commit is contained in:
hamster1963
2024-12-06 22:55:13 +08:00
parent 1d9e59a9df
commit a3bbd7b2eb
10 changed files with 170 additions and 21 deletions

View 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,
);