1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2025-01-05 13:29:44 +00:00
festa/components/view/ViewEvent.tsx

24 lines
No EOL
564 B
TypeScript

import { ReactNode } from "react"
type ViewEventProps = {
title: ReactNode
postcard: ReactNode
description: ReactNode
}
export function ViewEvent(props: ViewEventProps) {
return (
<main className="view-event">
<h1 className="view-event-title">
{props.title}
</h1>
<div className="view-event-postcard">
{props.postcard}
</div>
<div className="view-event-description">
{props.description}
</div>
</main>
)
}