1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-24 23:54:22 +00:00
festa/components/view/ViewContent.tsx
2022-06-04 05:13:19 +02:00

20 lines
No EOL
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>
)
}