Files
dify/web/app/components/integrations/section-layout.tsx

32 lines
638 B
TypeScript

'use client'
import type { ReactNode } from 'react'
import { ScrollArea } from '@langgenius/dify-ui/scroll-area'
type IntegrationSectionLayoutProps = {
bodyClassName?: string
children: ReactNode
label?: string
}
export function IntegrationSectionLayout({
bodyClassName,
children,
label,
}: IntegrationSectionLayoutProps) {
return (
<ScrollArea
className="min-h-0 flex-1 overflow-hidden"
label={label}
slotClassNames={{
viewport: 'overscroll-contain',
content: 'min-h-full',
}}
>
<div className={bodyClassName}>
{children}
</div>
</ScrollArea>
)
}