mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-19 12:06:42 +08:00
### What problem does this PR solve? Feat: Fixed the issue where the dataset configuration page kept refreshing #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
22 lines
427 B
TypeScript
22 lines
427 B
TypeScript
import { cn } from '@/lib/utils';
|
|
import { PropsWithChildren } from 'react';
|
|
|
|
export type FormContainerProps = {
|
|
className?: string;
|
|
show?: boolean;
|
|
} & PropsWithChildren;
|
|
|
|
export function FormContainer({
|
|
children,
|
|
show = true,
|
|
className,
|
|
}: FormContainerProps) {
|
|
return show ? (
|
|
<section className={cn('border rounded-lg p-5 space-y-5', className)}>
|
|
{children}
|
|
</section>
|
|
) : (
|
|
children
|
|
);
|
|
}
|