"use client"; import { useState } from "react"; import { retryJobAction } from "../actions"; type Props = { jobId: string; }; // Re-run a failed job from its stored spec (bucket jobs re-derive from the // channel's current state). The re-run jumps ahead of other queued work. export function RetryJobButton({ jobId }: Props) { const [busy, setBusy] = useState(false); const [note, setNote] = useState(null); return ( {note && ( {note} )} ); }