import { useSimulationState } from '../../store/simulationStore';
function EvidenceCard({ label, present, detail, accent }) {
return (
{label}
{present ? 'CAPTURED' : (label === 'Rejected Baseline' ? 'NOT REQUIRED' : 'PENDING')}
{detail}
);
}
export default function FPSRChart() {
const { rejectedRun, chosenRun, rcaDocument } = useSimulationState();
const totalCaptured = [rejectedRun, chosenRun, rcaDocument].filter(Boolean).length;
return (
Outcome Snapshot
{totalCaptured === 0 ? 'Awaiting Evidence' : `${totalCaptured} sample${totalCaptured === 1 ? '' : 's'} captured`}
Passing fix present
{chosenRun ? 'YES' : 'NO'}
);
}