16 lines
355 B
TypeScript
16 lines
355 B
TypeScript
import {ReactNode} from 'react'
|
|
|
|
export function PageSection(props: {
|
|
title: string
|
|
children: ReactNode
|
|
}) {
|
|
return (
|
|
<section>
|
|
<div className="max-w-[1232px] mx-auto px-4 flex flex-col items-stretch">
|
|
<h2 className="text-center text-3xl mb-8 lg:mb-24">{props.title}</h2>
|
|
{props.children}
|
|
</div>
|
|
</section>
|
|
)
|
|
}
|