@@ -43,22 +85,49 @@ export function ReportView({ report }: { report: Report }) {
)}
- {/* Phase 3 wires these to share-by-URL / engine re-run / markdown renderer. */}
-
-
Share report
-
Re-run
-
Export markdown
+
+ {onRerun ? (
+
+ {rerunBusy ? "Re-running…" : rerunLabel}
+
+ ) : null}
+
Export markdown
+ {copyState === "copied" ? (
+
+ Copied to clipboard
+
+ ) : copyState === "failed" ? (
+
+ Copy failed
+
+ ) : null}
);
}
-function ActionButton({ children }: { children: React.ReactNode }) {
+interface ActionButtonProps {
+ children: React.ReactNode;
+ onClick?: () => void | Promise