1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-23 15:14:23 +00:00
festa/components/view/ViewContent.tsx

20 lines
438 B
TypeScript
Raw Normal View History

2022-06-04 03:13:19 +00:00
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>
)
}