'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 (