mirror of
https://github.com/langgenius/dify.git
synced 2026-07-16 09:58:42 +08:00
32 lines
638 B
TypeScript
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>
|
|
)
|
|
}
|