| 11 | import { LoadingState } from './design-system/LoadingState.js'; |
| 12 | const DESKTOP_DOCS_URL = 'https://clau.de/desktop'; |
| 13 | export function getDownloadUrl(): string { |
| 14 | switch (process.platform) { |
| 15 | case 'win32': |
| 16 | return 'https://claude.ai/api/desktop/win32/x64/exe/latest/redirect'; |
| 17 | default: |
| 18 | return 'https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect'; |
| 19 | } |
| 20 | } |
| 21 | type DesktopHandoffState = 'checking' | 'prompt-download' | 'flushing' | 'opening' | 'success' | 'error'; |
| 22 | type Props = { |
| 23 | onDone: (result?: string, options?: { |