1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-23 07:04:22 +00:00
festa/components/postcard/PostcardContext.tsx

15 lines
459 B
TypeScript

import { createDefinedContext } from "../../utils/definedContext";
export type PostcardContextValue = {
postcard: string,
setPostcard: React.Dispatch<React.SetStateAction<string>>,
visible: boolean,
setVisible: React.Dispatch<React.SetStateAction<boolean>>,
}
/**
* Context containing data about the website's current postcard, the blurred background image.
*/
export const PostcardContext = createDefinedContext<PostcardContextValue>()