import { VSCodeLink } from "@vscode/webview-ui-toolkit/react" import { Trans } from "react-i18next" interface CheckpointWarningProps { warning: { type: "WAIT_TIMEOUT" | "INIT_TIMEOUT" timeout: number } } export const CheckpointWarning = ({ warning }: CheckpointWarningProps) => { const settingsLink = ( { e.preventDefault() window.postMessage( { type: "action", action: "settingsButtonClicked", values: { section: "checkpoints" }, }, "*", ) }} className="inline" /> ) // Map warning type to i18n key const i18nKey = warning.type === "WAIT_TIMEOUT" ? "errors.wait_checkpoint_long_time" : "errors.init_checkpoint_fail_long_time" return (
) }