mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-04 01:29:35 +08:00
### What problem does this PR solve? Renovate global navigation bar, align styles to the design. (May causes minor layout issues in sub-pages, will check and fix soon) ### Type of change - [x] Refactoring
27 lines
488 B
TypeScript
27 lines
488 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-0.5 border-border-button rounded-lg p-5 space-y-5',
|
|
className,
|
|
)}
|
|
>
|
|
{children}
|
|
</section>
|
|
) : (
|
|
children
|
|
);
|
|
}
|