'use client' import type { FC } from 'react' import React from 'react' import { useTranslation } from 'react-i18next' import cn from 'classnames' import s from './style.module.css' import Modal from '@/app/components/base/modal' import Button from '@/app/components/base/button' import { AlertCircle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback' type Props = { isShow: boolean onHide: () => void onRemove: () => void text?: string children?: JSX.Element } const DeleteConfirmModal: FC = ({ isShow, onHide, onRemove, children, text, }) => { const { t } = useTranslation() if (!isShow) return null return (
{ e.stopPropagation() e.stopPropagation() e.nativeEvent.stopImmediatePropagation() }}>
{text ? (
{text}
) : children}
) } export default React.memo(DeleteConfirmModal)