export default function DetailRow({
  icon,
  label,
  value,
  mono = false,
}: {
  icon: React.ReactNode;
  label: string;
  value: React.ReactNode;
  mono?: boolean;
}) {
  return (
    <div className="flex items-center justify-between gap-4 py-3">
      <div className="flex shrink-0 items-center gap-3 text-black/50">
        <span className="flex size-8 shrink-0 items-center justify-center rounded-lg bg-black/5">
          {icon}
        </span>
        <span className="text-sm">{label}</span>
      </div>
      <div
        className={`min-w-0 text-right text-sm font-medium wrap-break-word ${mono ? 'font-mono' : ''}`}
      >
        {value}
      </div>
    </div>
  );
}
