mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-03 17:44:44 +02:00
16 lines
402 B
TypeScript
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;
|