mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 22:54:22 +00:00
15 lines
459 B
TypeScript
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>()
|