import { Check, X, Clock } from 'lucide-react' import type { AISuggestion } from '@/types' interface SuggestionsTabProps { suggestions: AISuggestion[] } const STATUS_CONFIG = { accepted: { icon: Check, color: 'text-emerald-400', label: 'Accepted' }, dismissed: { icon: X, color: 'text-rose-400', label: 'Dismissed' }, pending: { icon: Clock, color: 'text-amber-400', label: 'Pending' }, } as const export function SuggestionsTab({ suggestions }: SuggestionsTabProps) { if (suggestions.length === 0) { return (
No AI suggestions yet
) } return (
{suggestions.map((s) => { const config = STATUS_CONFIG[s.status] const StatusIcon = config.icon return (
{s.action_type.replace(/_/g, ' ')} {config.label}
{s.target_node_id && (

Node: {s.target_node_id}

)}

{new Date(s.created_at).toLocaleDateString()}

) })}
) }