mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
29 lines
No EOL
745 B
TypeScript
29 lines
No EOL
745 B
TypeScript
import { ReactNode } from "react"
|
|
import { FormFromTo } from "../form/FormFromTo"
|
|
|
|
type ViewEventProps = {
|
|
title: ReactNode,
|
|
postcard: ReactNode,
|
|
description: ReactNode,
|
|
daterange: 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>
|
|
<div className="view-event-daterange">
|
|
{props.daterange}
|
|
</div>
|
|
</main>
|
|
)
|
|
} |