mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-03 00:29:10 +00:00
18 lines
421 B
TypeScript
18 lines
421 B
TypeScript
import { createContext } from "react";
|
|
|
|
export type SupporterStatus = {
|
|
visible: boolean;
|
|
tier?: string;
|
|
};
|
|
|
|
type SupporterStatusContextType = {
|
|
supporterStatus: SupporterStatus | null;
|
|
updateSupporterStatus: (updatedSite: Partial<SupporterStatus>) => void;
|
|
};
|
|
|
|
const SupporterStatusContext = createContext<
|
|
SupporterStatusContextType | undefined
|
|
>(undefined);
|
|
|
|
export default SupporterStatusContext;
|