import React, { useEffect } from 'react' import { Box, Text } from 'ink' import { Header } from '../components/index.js' import { theme } from '../theme.js' export interface ConfigInitSuccessScreenProps { /** * Optional callback when the screen is ready to exit */ onExit?: () => void } /** * ConfigInitSuccessScreen displays the success message after initializing configuration. * This replaces the console.log implementation in commands/config/init.ts * * Features: * - Shows success message * - Displays next steps with command examples * - Clean, consistent styling */ export function ConfigInitSuccessScreen({ onExit, }: ConfigInitSuccessScreenProps): React.ReactElement { // Auto-exit after rendering useEffect(() => { if (onExit) { onExit() } }, [onExit]) return (
{/* Next steps */} Next steps: Import a wallet: safe wallet import View configuration: safe config show Manage chains: safe config chains list {/* Success message */} Ready to use Safe CLI! ) }