import { useTranslation } from 'react-i18next' import Indicator from '../../indicator' import type { Status } from './declarations' type OperateProps = { isOpen: boolean status: Status disabled?: boolean onCancel: () => void onSave: () => void onAdd: () => void onEdit: () => void } const Operate = ({ isOpen, status, disabled, onCancel, onSave, onAdd, onEdit, }: OperateProps) => { const { t } = useTranslation() if (isOpen) { return (