>
)
}
type ContentWrapperProps = PropsWithChildren<{
disableAnimations?: boolean
}>
/**
* The fade in animation masks the layout repainting issues.
* That animation however, interferes with nested AnimationProviders so we need
* to disable it for certain pages that use that.
*/
function ContentWrapper({children, disableAnimations}: ContentWrapperProps) {
if (disableAnimations) {
return <>{children}>
}
return (
<>
{children}
>
)
}