mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-18 21:47:40 +00:00
refactor: Create shared components and global styles for improved code organization
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user