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

16 lines
459 B
TypeScript
Raw Normal View History

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