mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-25 08:04:22 +00:00
20 lines
438 B
TypeScript
20 lines
438 B
TypeScript
|
import { ReactNode } from "react"
|
||
|
|
||
|
type ViewContentProps = {
|
||
|
title: ReactNode
|
||
|
content: ReactNode
|
||
|
}
|
||
|
|
||
|
|
||
|
export function ViewContent(props: ViewContentProps) {
|
||
|
return (
|
||
|
<main className="view-content">
|
||
|
<h1 className="view-content-title">
|
||
|
{props.title}
|
||
|
</h1>
|
||
|
<div className="view-content-content">
|
||
|
{props.content}
|
||
|
</div>
|
||
|
</main>
|
||
|
)
|
||
|
}
|