"use client"; export function TrustBadge({ trustLevel, reason }: { trustLevel: 1 | 2 | 3; reason?: string; }) { const stars = trustLevel === 3 ? "★★★" : trustLevel === 2 ? "★★" : "★"; const color = trustLevel === 3 ? "border-green-900/60 bg-green-950/30 text-green-200" : trustLevel === 2 ? "border-yellow-900/60 bg-yellow-950/30 text-yellow-200" : "border-red-900/60 bg-red-950/30 text-red-200"; return (
Trust
{stars}
{reason ?
{reason}
: null}
); }