(render !== 'default')
useEffect(() => {
setPreventRender(false)
}, [])
if (preventRender) {
const renderSEO = render === 'effect-seo'
if (!renderSEO) return null
return (
{children}
)
}
const hasContent = hasChild(children, PageContent)
return (
{hasContent ? children : {children}}
{showDot && }
)
}
type MemoPageComponent = React.NamedExoticComponent
& {
Header: typeof PageHeader
Content: typeof PageContent
Body: typeof PageContent
Footer: typeof PageFooter
}
type ComponentProps = Partial &
Omit &
NativeAttrs
Page.defaultProps = defaultProps
export default React.memo(Page) as MemoPageComponent