import { AuthOrchestrationOperateScope, type EditorId, type EnvironmentId, } from "@t3tools/contracts"; import { squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime"; import { useOpenInPreferredEditor } from "../editorPreferences"; import { useEnvironmentScope } from "../state/session"; import { Button } from "./ui/button"; import { stackedThreadToast, toastManager } from "./ui/toast"; export function KeybindingsConfigWarning({ message, environmentId, configPath, availableEditors, }: { message: string; environmentId: EnvironmentId | null; configPath: string | null; availableEditors: readonly EditorId[]; }) { const canOpenEditor = useEnvironmentScope(environmentId, AuthOrchestrationOperateScope); const openInEditor = useOpenInPreferredEditor(environmentId, availableEditors); return ( <> {message} ); }