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)
This commit is contained in:
balibabu
2025-02-28 17:52:18 +08:00
committed by GitHub
parent 2c7428e2ee
commit aa313e112a
2 changed files with 43 additions and 28 deletions

View File

@ -3,13 +3,15 @@ import { PropsWithChildren } from 'react';
type DatasetConfigurationContainerProps = {
className?: string;
show?: boolean;
} & PropsWithChildren;
export function DatasetConfigurationContainer({
children,
className,
show = true,
}: DatasetConfigurationContainerProps) {
return (
return show ? (
<div
className={cn(
'border p-2 rounded-lg bg-slate-50 dark:bg-gray-600',
@ -18,5 +20,7 @@ export function DatasetConfigurationContainer({
>
{children}
</div>
) : (
children
);
}