import React from 'react'; import { TrashIcon } from '@heroicons/react/24/outline'; import { useTranslation } from 'react-i18next'; interface TaskModalActionsProps { taskId?: number; isSaving: boolean; onDelete: () => void; onCancel: () => void; onSave: () => void; } const TaskModalActions: React.FC = ({ taskId, isSaving, onDelete, onCancel, onSave, }) => { const { t } = useTranslation(); return (
{/* Left side: Delete and Cancel */}
{taskId && ( )}
{/* Right side: Save */}
); }; export default TaskModalActions;