import { h, type FunctionComponent } from 'preact'
import cn from 'classnames'
import s from './section.module.scss'
const Section: FunctionComponent<{ className?: string; maxWidth?: string; minWidth?: string }> & {
Body: typeof SectionBody
Footer: typeof SectionFooter
Heading: typeof SectionHeading
} = ({ children, className, maxWidth, minWidth }) => (
)
const SectionBody: FunctionComponent<{ className?: string; noPadding?: boolean }> = ({
children,
className,
noPadding,
}) =>
{children}
Section.Body = SectionBody
const SectionHeading: FunctionComponent<{ className?: string }> = ({ children, className }) => (
{children}
)
Section.Heading = SectionHeading
const SectionFooter: FunctionComponent<{ className?: string }> = ({ children, className }) => (
{children}
)
Section.Footer = SectionFooter
export default Section