import React from 'react'; import { MinusIcon, CheckCircleIcon, ArchiveBoxIcon, ArrowPathIcon } from '@heroicons/react/24/solid'; import { useTranslation } from 'react-i18next'; interface TaskStatusBadgeProps { status: string; className?: string; } const TaskStatusBadge: React.FC = ({ status, className }) => { const { t } = useTranslation(); let statusIcon, statusLabel; switch (status) { case 'not_started': statusIcon = ; statusLabel = t('status.notStarted', 'Not Started'); break; case 'in_progress': statusIcon = ; statusLabel = t('status.inProgress', 'In Progress'); break; case 'done': statusIcon = ; statusLabel = t('status.done', 'Done'); break; case 'archived': statusIcon = ; statusLabel = t('status.archived', 'Archived'); break; default: statusIcon = ; statusLabel = t('status.unknown', 'Unknown'); } return (
{statusIcon} {/* {statusLabel} */}
); }; export default TaskStatusBadge;