mirror of
https://github.com/remvze/moodist.git
synced 2025-12-19 09:54:17 +00:00
30 lines
491 B
TypeScript
30 lines
491 B
TypeScript
import { cn } from '@/helpers/styles';
|
|
|
|
import styles from './container.module.css';
|
|
|
|
interface ContainerProps {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
tight?: boolean;
|
|
wide?: boolean;
|
|
}
|
|
|
|
export function Container({
|
|
children,
|
|
className,
|
|
tight,
|
|
wide,
|
|
}: ContainerProps) {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
styles.container,
|
|
className,
|
|
tight && styles.tight,
|
|
wide && styles.wide,
|
|
)}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|