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

14 lines
353 B
TypeScript
Raw Normal View History

2022-06-04 03:13:19 +00:00
import { PostcardContext } from "./PostcardContext"
import { useDefinedContext } from "../../utils/definedContext";
export function PostcardRenderer() {
const [postcard,] = useDefinedContext(PostcardContext)
return <>
<div
className="postcard"
style={{backgroundImage: `url(${postcard})`}}
/>
</>
}