'use client' import { Circle, CircleCheck } from 'lucide-react' import Link from 'next/link' import type { SupportTicket } from '@/lib/types' import { Badge } from '@/components/ui/badge' const statusIcons: Record> = { open: Circle, 'in-progress': Circle, resolved: CircleCheck, closed: CircleCheck, } const statusColors: Record = { open: 'bg-emerald-500/10 text-emerald-400', 'in-progress': 'bg-blue-500/10 text-blue-400', resolved: 'bg-gray-500/10 text-gray-400', closed: 'bg-gray-500/10 text-gray-400', } const priorityColors: Record = { low: '', medium: 'bg-orange-500/10 text-orange-400', high: 'bg-red-500/10 text-red-400', } interface SupportTicketItemProps { ticket: SupportTicket } export function SupportTicketItem({ ticket }: SupportTicketItemProps) { return ( {/* Status indicator */}
{ticket.status === 'open' || ticket.status === 'in-progress' ? ( ) : ( )}
{/* Content */}

{ticket.subject}

{ticket.priority === 'high' && ( High Priority )}

{ticket.description}

{/* Ticket number */}
#{ticket.id}
{ticket.status}
) }