2025-02-28 16:54:04 +08:00
|
|
|
import { cn } from '@/lib/utils';
|
|
|
|
import { PropsWithChildren } from 'react';
|
|
|
|
|
|
|
|
type DatasetConfigurationContainerProps = {
|
|
|
|
className?: string;
|
2025-02-28 17:52:18 +08:00
|
|
|
show?: boolean;
|
2025-02-28 16:54:04 +08:00
|
|
|
} & PropsWithChildren;
|
|
|
|
|
|
|
|
export function DatasetConfigurationContainer({
|
|
|
|
children,
|
|
|
|
className,
|
2025-02-28 17:52:18 +08:00
|
|
|
show = true,
|
2025-02-28 16:54:04 +08:00
|
|
|
}: DatasetConfigurationContainerProps) {
|
2025-02-28 17:52:18 +08:00
|
|
|
return show ? (
|
2025-02-28 16:54:04 +08:00
|
|
|
<div
|
|
|
|
className={cn(
|
|
|
|
'border p-2 rounded-lg bg-slate-50 dark:bg-gray-600',
|
|
|
|
className,
|
|
|
|
)}
|
|
|
|
>
|
|
|
|
{children}
|
|
|
|
</div>
|
2025-02-28 17:52:18 +08:00
|
|
|
) : (
|
|
|
|
children
|
2025-02-28 16:54:04 +08:00
|
|
|
);
|
|
|
|
}
|