import { Suspense } from 'react' import classNames from 'classnames' import Container from '@/components/shared/Container' import { PAGE_CONTAINER_GUTTER_X, PAGE_CONTAINER_GUTTER_Y, } from '@/constants/theme.constant' import Footer from '@/components/template/Footer' import type { CommonProps } from '@/proxy/common' import type { Meta } from '@/proxy/routes/routes' import type { ElementType, ComponentPropsWithRef } from 'react' import type { FooterPageContainerType } from '@/components/template/Footer' export interface PageContainerProps extends CommonProps, Meta { contained?: boolean } const CustomHeader = ({ header, ...props }: { header: T } & ComponentPropsWithRef) => { const Header = header return
} const PageContainer = (props: PageContainerProps) => { const { pageContainerType = 'default', children, header, contained = false, extraHeader, footer = true, } = props return (
{(header || extraHeader) && (
{header && typeof header === 'string' && (

{header}

)}
}> {header && typeof header !== 'string' && ( )}
}> {extraHeader && typeof extraHeader !== 'string' && ( )}
)} {pageContainerType === 'contained' ? ( <>{children} ) : ( <>{children} )} {footer && (