fosrl.pangolin/src/contexts/supporterStatusContext.ts
2025-03-20 22:16:02 -04:00

16 lines
402 B
TypeScript

import { createContext } from "react";
export type SupporterStatus = {
visible: boolean;
};
type SupporterStatusContextType = {
supporterStatus: SupporterStatus | null;
updateSupporterStatus: (updatedSite: Partial<SupporterStatus>) => void;
};
const SupporterStatusContext = createContext<
SupporterStatusContextType | undefined
>(undefined);
export default SupporterStatusContext;