import { Link } from 'react-router-dom'; import { Ticket } from '../../store'; interface Props { tickets: Ticket[]; } export default function RecentActivityTable({ tickets }: Props) { return (

Recent Activity

{tickets.map((t) => ( ))} {tickets.length === 0 && ( )}
Ticket ID Sender Subject Category Status
#{t.ticket_id} {t.sender || 'Unknown'} {t.subject || '(no subject)'} {t.category} {t.needs_escalation ? 'ESCALATED' : t.status.toUpperCase()}
No recent activity found.
); }