2025-02-23 00:46:09 -06:00
|
|
|
'use client';
|
|
|
|
|
|
|
|
|
|
import { ReactNode } from 'react';
|
|
|
|
|
import styles from '../app/page.module.css';
|
2025-02-23 00:38:48 -06:00
|
|
|
|
|
|
|
|
type SectionProps = {
|
2025-02-23 00:46:09 -06:00
|
|
|
children: ReactNode;
|
|
|
|
|
background?: 'light' | 'dark';
|
|
|
|
|
className?: string;
|
|
|
|
|
}
|
2025-02-23 00:38:48 -06:00
|
|
|
|
2025-02-23 00:42:07 -06:00
|
|
|
export function Section({ children, background = 'light', className = '' }: SectionProps) {
|
2025-02-23 00:46:09 -06:00
|
|
|
return (
|
|
|
|
|
<div className={[
|
|
|
|
|
className,
|
|
|
|
|
background === 'dark' ? styles.darkSection : ''
|
|
|
|
|
].filter(Boolean).join(' ')}>
|
|
|
|
|
{children}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
2025-02-23 00:38:48 -06:00
|
|
|
}
|