import { GITHUB_ACTION_SETUP_DOCS_URL } from '../../constants/github-app.js';
import { Box, Text } from '@anthropic/ink';
interface ErrorStepProps {
error: string | undefined;
errorReason?: string;
errorInstructions?: string[];
}
export function ErrorStep({ error, errorReason, errorInstructions }: ErrorStepProps) {
return (
<>
Install GitHub App
Error: {error}
{errorReason && (
Reason: {errorReason}
)}
{errorInstructions && errorInstructions.length > 0 && (
How to fix:
{errorInstructions.map((instruction, index) => (
•
{instruction}
))}
)}
For manual setup instructions, see: {GITHUB_ACTION_SETUP_DOCS_URL}
Press any key to exit
>
);
}