21 lines
368 B
TypeScript
21 lines
368 B
TypeScript
import classNames from 'classnames'
|
|
|
|
export interface MainProps {
|
|
className?: string
|
|
}
|
|
|
|
export const Main: React.FC<MainProps> = (props) => {
|
|
const { children, className } = props
|
|
|
|
return (
|
|
<main
|
|
className={classNames(
|
|
'flex flex-1 flex-col items-center justify-center py-8',
|
|
className
|
|
)}
|
|
>
|
|
{children}
|
|
</main>
|
|
)
|
|
}
|