All files / src/pages/flowsheet-page/flowsheet/revisions UnavailableRevisionOutput.tsx

0% Statements 0/6
25% Branches 1/4
0% Functions 0/1
0% Lines 0/4

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                                           
import { History } from "lucide-react";
 
/** Explain calculated output that is intentionally absent from revisions. */
export function UnavailableRevisionOutput({
  message = "This output is not retained in versions.",
}: {
  message?: string;
}) {
  return (
    <section
      className="m-4 rounded-md border bg-card p-4"
      aria-label="Version output unavailable"
    >
      <div className="flex items-center gap-2 text-sm font-medium">
        <History className="h-4 w-4 text-muted-foreground" aria-hidden="true" />
        Output unavailable
      </div>
      <p className="mt-2 text-sm text-muted-foreground">{message}</p>
    </section>
  );
}