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

29 lines
751 B
TypeScript
Raw Normal View History

2022-06-06 00:10:04 +00:00
import { ReactNode } from "react"
import { FormDateRange } from "../form/FormDateRange"
2022-06-06 00:10:04 +00:00
type ViewEventProps = {
2022-06-06 01:15:44 +00:00
title: ReactNode,
postcard: ReactNode,
description: ReactNode,
2022-06-07 11:41:26 +00:00
daterange: ReactNode,
2022-06-06 00:10:04 +00:00
}
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>
2022-06-07 11:41:26 +00:00
<div className="view-event-daterange">
{props.daterange}
</div>
2022-06-06 00:10:04 +00:00
</main>
)
}