2022-06-06 00:10:04 +00:00
|
|
|
import { ReactNode } from "react"
|
2022-06-08 00:12:03 +00:00
|
|
|
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>
|
|
|
|
)
|
|
|
|
}
|