mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 22:54:22 +00:00
19 lines
No EOL
442 B
TypeScript
19 lines
No EOL
442 B
TypeScript
import { memo, ReactNode } from "react"
|
|
import style from "./content.module.css"
|
|
|
|
|
|
export type ViewContentProps = {
|
|
content: ReactNode
|
|
}
|
|
|
|
/**
|
|
* A view which displays a title and below it some miscellaneous text content.
|
|
*/
|
|
export const ViewContent = memo((props: ViewContentProps) => {
|
|
return (
|
|
<main className={style.viewContent}>
|
|
{props.content}
|
|
</main>
|
|
)
|
|
})
|
|
ViewContent.displayName = "ViewContent" |