"use client" import { AlertTriangle } from "lucide-react" import { useAudienceMode } from "@/components/audience-mode-provider" import type { ReproducibilityGap } from "@/lib/backend-artifacts" import { formatMissingField } from "./signal-utils" export function ReproducibilityPanel({ gap, }: { gap?: ReproducibilityGap | null }) { const { mode } = useAudienceMode() const isResearchView = mode === "research" if (!gap) { return null } return (
{isResearchView ? "Reproducibility" : "Re-runnability"}
{isResearchView ? "Whether the setup is documented well enough for someone else to re-run." : "Whether someone could re-run this evaluation with the information available."}
{gap.missing_fields.length > 0 && ( )}
) } function PanelRow({ label, value }: { label: string; value: string }) { return (
{label} {value}
) }