const PRIORITY_CONFIG = { low: { label: 'Low', dot: 'bg-text-tertiary' }, medium: { label: 'Medium', dot: 'bg-blue-500' }, high: { label: 'High', dot: 'bg-orange-500' }, urgent: { label: 'Urgent', dot: 'bg-red-500' }, } const TYPE_LABELS = { request: 'Request', correction: 'Correction', complaint: 'Complaint', suggestion: 'Suggestion', other: 'Other', } export default function IssueCard({ issue, onClick }) { const priority = PRIORITY_CONFIG[issue.priority] || PRIORITY_CONFIG.medium const formatDate = (dateStr) => { if (!dateStr) return '' return new Date(dateStr).toLocaleDateString('en-US', { month: 'short', day: 'numeric' }) } return (
onClick?.(issue)} className="bg-surface border border-border rounded-lg p-3 cursor-pointer hover:border-brand-primary/30 hover:shadow-sm transition-all" > {/* Priority dot + Title */}

{issue.title}

{/* Metadata */}
{issue.category && ( {issue.category} )} {issue.brand_name && ( {issue.brand_name} )}
{/* Footer */}
{issue.submitter_name} {formatDate(issue.created_at || issue.CreatedAt)}
) }