import { clsx } from 'clsx'; import { HTMLAttributes, PropsWithChildren } from 'react'; import { CommonProps } from '../common'; type SectionProps = PropsWithChildren< CommonProps & { as?: 'div' | 'fieldset' | 'section'; withHorizontalPadding?: boolean; } > & Pick, 'role' | 'aria-labelledby'>; /** * * Neptune Web: https://transferwise.github.io/neptune-web/components/content/Section * */ const Section = ({ as: Element = 'div', children, className, withHorizontalPadding = false, role = undefined, ...restProps }: SectionProps) => { return ( {children} ); }; export default Section;