import type { ReactNode } from 'react'; import { Box, Container } from '@chakra-ui/react'; type HomeSectionProps = { // Id of the heading that names this section for assistive technology labelledBy: string; id?: string; tone?: 'paper' | 'alt'; // full: no content column, for edge-to-edge content; the section then // places its own Container around what should stay in the column width?: 'default' | 'narrow' | 'full'; spacing?: 'default' | 'tight'; 'data-testid'?: string; children: ReactNode; }; // Frame of a homepage section (design .section): vertical rhythm, an // optional alternate background and the content column. export default function HomeSection({ labelledBy, id, tone = 'paper', width = 'default', spacing = 'default', 'data-testid': testId, children, }: HomeSectionProps) { return ( {width === 'full' ? ( children ) : ( {children} )} ); }