mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-21 06:37:39 +00:00
16 lines
373 B
TypeScript
16 lines
373 B
TypeScript
|
|
import styles from './Section.module.css';
|
||
|
|
|
||
|
|
type SectionProps = {
|
||
|
|
children: React.ReactNode;
|
||
|
|
background?: 'default' | 'dark';
|
||
|
|
className?: string;
|
||
|
|
};
|
||
|
|
|
||
|
|
export function Section({ children, background = 'default', className = '' }: SectionProps) {
|
||
|
|
return (
|
||
|
|
<div className={`${styles.section} ${styles[background]} ${className}`}>
|
||
|
|
{children}
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|