1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-23 23:24:23 +00:00
festa/components/postcard/useStatePostcard.ts

14 lines
402 B
TypeScript
Raw Normal View History

2022-06-09 21:43:38 +00:00
import { useState } from "react";
import { PostcardImage, PostcardVisibility } from "./PostcardContext";
export function useStatePostcard() {
const [visibility, setVisibility] = useState<PostcardVisibility>(PostcardVisibility.BACKGROUND)
const [image, setImage] = useState<PostcardImage>("none")
return {
visibility,
setVisibility,
image,
setImage,
}
}