import { Ref, forwardRef } from 'react' import { cn } from 'ui' import { cva, type VariantProps } from 'class-variance-authority' const sectionContainerVariants = cva('max-w-7xl relative mx-auto px-6', { variants: { width: { normal: 'lg:px-16 xl:px-20', smallScreenFull: 'max-w-full lg:container px-0', }, height: { normal: 'py-16 md:py-24 lg:py-24', narrow: 'py-6 md:py-8', none: '', }, }, defaultVariants: { width: 'normal', height: 'normal', }, }) interface Props extends VariantProps { children: React.ReactNode className?: string id?: string } /** * To have tailwind classes applied correctly, use this component instead of SectionContainer * * @param width - 'normal' (default) or 'full' * @param height - 'normal' (default) or 'narrow' */ const SectionContainerWithCn = forwardRef( ({ children, className, id, width, height }: Props, ref: Ref) => (
{children}
) ) SectionContainerWithCn.displayName = 'SectionContainerWithCn' export default SectionContainerWithCn