import { forwardRef, type HTMLAttributes, type ReactNode, type ForwardRefRenderFunction, } from 'react'; export type MainProps = HTMLAttributes & { /** * The main body. */ children: ReactNode; }; const MainWithRef: ForwardRefRenderFunction = ( { children, ...props }, ref ) => (
{children}
); /** * Main component * * Render a main element. */ export const Main = forwardRef(MainWithRef);