import type { VariantProps } from 'class-variance-authority' import { cva } from 'class-variance-authority' import type React from 'react' import { cn } from '../../utils/cn' const sectionVariants = cva( 'py-8 px-6 lg:px-10 border-border border-0 border-solid', { variants: { variant: { default: 'bg-background', alt: 'bg-background-alt border-t', }, border: { true: 'border-t', false: 'border-t-0', }, width: { default: '', fluid: '', narrow: '', }, }, defaultVariants: { variant: 'default', }, }, ) interface SectionProps extends React.HTMLAttributes, VariantProps { fluid?: boolean ref?: React.Ref } function InnerWrapper({ width, children, }: { width: 'default' | 'fluid' | 'narrow' children: React.ReactNode }) { if (width === 'fluid') { return children } return (
{children}
) } const Section = ({ variant, className, children, border, width = 'default', ref, ...props }: SectionProps) => { return (
{children}
) } Section.displayName = 'Section' export { Section, type SectionProps }