// frontend/components/inbox/ReasonLine.tsx
import { Icon } from "@/components/Icon";

export default function ReasonLine({
  reason,
  fallbackUsed,
}: {
  reason: string;
  fallbackUsed?: boolean;
}) {
  return (
    <div className="sb-reason">
      {fallbackUsed && (
        <span className="sb-fallback" title="LLM에 연결할 수 없어 규칙 기반으로 분류했어요">
          <Icon name="zap" />
          규칙 기반(오프라인)
        </span>
      )}
      {reason}
    </div>
  );
}
