import React from 'react'; import { Box, Text } from '@anthropic/ink'; type SuccessStepProps = { secretExists: boolean; useExistingSecret: boolean; secretName: string; skipWorkflow?: boolean; }; export function SuccessStep({ secretExists, useExistingSecret, secretName, skipWorkflow = false, }: SuccessStepProps): React.ReactNode { return ( <> Install GitHub App Success {!skipWorkflow && ✓ GitHub Actions workflow created!} {secretExists && useExistingSecret && ( ✓ Using existing ANTHROPIC_API_KEY secret )} {(!secretExists || !useExistingSecret) && ( ✓ API key saved as {secretName} secret )} Next steps: {skipWorkflow ? ( <> 1. Install the Claude GitHub App if you haven't already 2. Your workflow file was kept unchanged 3. API key is configured and ready to use ) : ( <> 1. A pre-filled PR page has been created 2. Install the Claude GitHub App if you haven't already 3. Merge the PR to enable Claude PR assistance )} Press any key to exit ); }