import type { ReactNode } from 'react' import { Dialog, DialogBackdrop, DialogClose, DialogPopup, DialogPortal, DialogTitle, DialogViewport, } from '@langgenius/dify-ui/dialog' import { IconButton } from '@langgenius/dify-ui/icon-button' import { useTranslation } from 'react-i18next' type MenuDialogProps = { children: ReactNode title: string onClose: () => void } const MenuDialog = ({ children, title, onClose }: MenuDialogProps) => { const { t } = useTranslation() return ( { if (!open) onClose() }} > {title}
$['operation.close'], { ns: 'common' })} > } />
ESC
{children}
) } export default MenuDialog