mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
14 lines
No EOL
353 B
TypeScript
14 lines
No EOL
353 B
TypeScript
import { PostcardContext } from "./PostcardContext"
|
|
import { useDefinedContext } from "../../utils/definedContext";
|
|
|
|
|
|
export function PostcardRenderer() {
|
|
const [postcard,] = useDefinedContext(PostcardContext)
|
|
|
|
return <>
|
|
<div
|
|
className="postcard"
|
|
style={{backgroundImage: `url(${postcard})`}}
|
|
/>
|
|
</>
|
|
} |