import figures from 'figures' import React from 'react' import { GITHUB_ACTION_SETUP_DOCS_URL } from '../../constants/github-app.js' import { Box, Text } from '@anthropic/ink' import { useKeybinding } from '../../keybindings/useKeybinding.js' interface InstallAppStepProps { repoUrl: string onSubmit: () => void } export function InstallAppStep({ repoUrl, onSubmit }: InstallAppStepProps) { // Enter to submit useKeybinding('confirm:yes', onSubmit, { context: 'Confirmation' }) return ( Install the Claude GitHub App Opening browser to install the Claude GitHub App… If your browser doesn't open automatically, visit: https://github.com/apps/claude Please install the app for repository: {repoUrl} Important: Make sure to grant access to this specific repository Press Enter once you've installed the app{figures.ellipsis} Having trouble? See manual setup instructions at:{' '} {GITHUB_ACTION_SETUP_DOCS_URL} ) }