mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-14 00:46:39 +00:00
add supporer key program
This commit is contained in:
16
src/contexts/supporterStatusContext.ts
Normal file
16
src/contexts/supporterStatusContext.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user