File size: 515 Bytes
b9fe2b4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import { cn } from '@/lib/utils';
import { PropsWithChildren } from 'react';
type DatasetConfigurationContainerProps = {
className?: string;
show?: boolean;
} & PropsWithChildren;
export function DatasetConfigurationContainer({
children,
className,
show = true,
}: DatasetConfigurationContainerProps) {
return show ? (
<div
className={cn(
'border p-2 rounded-lg bg-slate-50 dark:bg-gray-600',
className,
)}
>
{children}
</div>
) : (
children
);
}
|