ragflow / web /src /components /dataset-configuration-container.tsx
Starowo's picture
Upload 1411 files
b9fe2b4 verified
raw
history blame contribute delete
515 Bytes
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
);
}