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