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