import { type FC, useState } from 'react' import DefaulModal from './DefaulModal' import { useTranslation } from 'react-i18next' import Button from './Button' import Textarea from './Textarea' type Props = { isloading?: boolean, close: () => void, isOpen: boolean, onConfrim: (text?: string) => void, label?: string, isHasDescription?: boolean } const ModalConfrim: FC = (props: Props) => { const { t } = useTranslation('global') const [description, setDescription] = useState('') return (
{ props.label ? props.label : 'برای حذف این آیتم مطمئن هستید؟' } { props.isHasDescription &&