"use client"; import { useState } from "react"; import { useRouter } from "next/navigation"; import { endRenderModeAction } from "../actions"; // Ends a manual render-mode window (`umtool render-mode on`, `pnpm ops // render-mode`) before its time: the lanes it held are released. export function EndRenderModeButton({ until }: { until: string | null }) { const [busy, setBusy] = useState(false); const [error, setError] = useState(null); const router = useRouter(); return ( {until && until {until}} {error && {error}} ); }