import { type ForwardRefRenderFunction, type HTMLAttributes, forwardRef, } from 'react'; import styles from './page.module.scss'; export type PageBodyProps = HTMLAttributes; const PageBodyWithRef: ForwardRefRenderFunction< HTMLDivElement, PageBodyProps > = ({ children, className = '', ...props }, ref) => { const bodyClass = `${styles.body} ${className}`; return (
{children}
); }; export const PageBody = forwardRef(PageBodyWithRef);