'use client' import React from 'react' interface StatusCellProps { cellData: string } export const StatusCell: React.FC = ({ cellData }) => { const getStatusDisplay = (status: string) => { switch (status) { case 'pending': return { icon: 'âŗ', color: '#6B7280', label: 'Pending' } case 'running': return { icon: '🔄', color: '#3B82F6', label: 'Running' } case 'completed': return { icon: '✅', color: '#10B981', label: 'Completed' } case 'failed': return { icon: '❌', color: '#EF4444', label: 'Failed' } case 'cancelled': return { icon: 'âšī¸', color: '#F59E0B', label: 'Cancelled' } default: return { icon: '❓', color: '#6B7280', label: status || 'Unknown' } } } const { icon, color, label } = getStatusDisplay(cellData) return (
{icon} {label}
) }