'use client' import { AlertDialog, AlertDialogActions, AlertDialogCancelButton, AlertDialogConfirmButton, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, } from '@langgenius/dify-ui/alert-dialog' import { cn } from '@langgenius/dify-ui/cn' import * as React from 'react' import { useTranslation } from 'react-i18next' import s from './index.module.css' type IProps = { show: boolean onConfirm: () => void onHide: () => void } const StopEmbeddingModal = ({ show = false, onConfirm, onHide, }: IProps) => { const { t } = useTranslation() const submit = () => { onConfirm() onHide() } return ( { if (!open) onHide() }} >