'use client' import type { ReactNode } from 'react' import { Button } from '@langgenius/dify-ui/button' import { PopoverClose, PopoverTitle } from '@langgenius/dify-ui/popover' import { useTranslation } from 'react-i18next' type PluginSidecarPanelProps = { children: ReactNode footer?: ReactNode title: ReactNode } export function PluginSidecarPanel({ children, footer, title }: PluginSidecarPanelProps) { const { t } = useTranslation() return (
{title}
$['operation.close'], { ns: 'common' })} className="absolute top-2.5 right-2.5 size-8 p-0 text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary" > } />
{children} {footer}
) }