import { TypeConfirmationForm } from '@/components/common/TypeConfirmationForm'; import { useDeleteQuery, useMessages } from '@/components/hooks'; const CONFIRM_VALUE = 'DELETE'; export function TeamDeleteForm({ teamId, onSave, onClose, }: { teamId: string; onSave?: () => void; onClose?: () => void; }) { const { labels, formatMessage, getErrorMessage } = useMessages(); const { mutateAsync, error, isPending, touch } = useDeleteQuery(`/teams/${teamId}`); const handleConfirm = async () => { await mutateAsync(null, { onSuccess: async () => { touch('teams'); onSave?.(); onClose?.(); }, }); }; return ( ); }