ragflow/web/src/components/dataset-configuration-container.tsx
balibabu aa313e112a
Feat: Wrap MaxTokenNumber with DatasetConfigurationContainer. #5467 (#5491)
### What problem does this PR solve?

Feat: Wrap MaxTokenNumber with DatasetConfigurationContainer. #5467

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
2025-02-28 17:52:18 +08:00

27 lines
515 B
TypeScript

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
);
}