Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 14x 5x | import type { WithheldAnswer } from "@/objects/Model";
import { EyeOff } from "lucide-react";
import React from "react";
/**
* The quiet line under an answer an Output rule withheld (svc-core
* `rule_engine.Withheld`): the bubble above holds the rule's message, not
* the answer. Says which rule, and whether the answer went to the
* workspace's reviewers — never what it was. The decision record ("Why did
* it do this?") is in view beside the answer's name.
*/
const WithheldNote: React.FC<{ withheld: WithheldAnswer }> = ({ withheld }) => (
<p className="mt-1.5 flex items-center gap-1.5 pl-0.5 text-xs text-gray-500 dark:text-gray-400">
<EyeOff className="size-3 shrink-0" aria-hidden="true" />
<span>
Withheld by {withheld.rule ? `“${withheld.rule}”` : "a rule"}
{withheld.review
? " — the answer went to review."
: " — the answer was not kept."}
</span>
</p>
);
export default WithheldNote;
|