mirror of
https://github.com/MAKS-IT-COM/maksit-certs-ui.git
synced 2025-12-31 04:00:03 +01:00
20 lines
396 B
TypeScript
20 lines
396 B
TypeScript
interface PageContainerProps {
|
|
title?: string
|
|
children: React.ReactNode
|
|
}
|
|
|
|
const PageContainer: React.FC<PageContainerProps> = (props) => {
|
|
const { title, children } = props
|
|
|
|
return (
|
|
<div className="container mx-auto p-4">
|
|
{title && (
|
|
<h1 className="text-4xl font-bold text-center mb-8">{title}</h1>
|
|
)}
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export { PageContainer }
|