import React from 'react' import { Box, Text, useTheme } from '@anthropic/ink' import { env } from '../../utils/env.js' const WELCOME_V2_WIDTH = 58 export function WelcomeV2(): React.ReactNode { const [theme] = useTheme() const welcomeMessage = 'Welcome to Claude Code' if (env.terminal === 'Apple_Terminal') { return ( ) } if (['light', 'light-daltonized', 'light-ansi'].includes(theme)) { return ( {welcomeMessage} v{MACRO.VERSION} {'…………………………………………………………………………………………………………………………………………………………'} {' '} {' '} {' '} {' ░░░░░░ '} {' ░░░ ░░░░░░░░░░ '} {' ░░░░░░░░░░░░░░░░░░░ '} {' '} {' ░░░░'} {' ██ '} {' ░░░░░░░░░░'} {' ██▒▒██ '} {' ▒▒ ██ ▒'} {' '} █████████ {' ▒▒░░▒▒ ▒ ▒▒'} {' '} ██▄█████▄██ {' ▒▒ ▒▒ '} {' '} █████████ {' ░ ▒ '} {'…………………'} {'█ █ █ █'} {'……………………………………………………………………░…………………………▒…………'} ) } return ( {welcomeMessage} v{MACRO.VERSION} {'…………………………………………………………………………………………………………………………………………………………'} {' '} {' * █████▓▓░ '} {' * ███▓░ ░░ '} {' ░░░░░░ ███▓░ '} {' ░░░ ░░░░░░░░░░ ███▓░ '} {' ░░░░░░░░░░░░░░░░░░░ '} * {' ██▓░░ ▓ '} {' ░▓▓███▓▓░ '} {' * ░░░░ '} {' ░░░░░░░░ '} {' ░░░░░░░░░░░░░░░░ '} {' '} █████████ {' '} * {' '} ██▄█████▄██ {' '} * {' '} {' '} █████████ {' * '} {'…………………'} {'█ █ █ █'} {'………………………………………………………………………………………………………………'} ) } type AppleTerminalWelcomeV2Props = { theme: string welcomeMessage: string } function AppleTerminalWelcomeV2({ theme, welcomeMessage, }: AppleTerminalWelcomeV2Props): React.ReactNode { const isLightTheme = ['light', 'light-daltonized', 'light-ansi'].includes( theme, ) if (isLightTheme) { return ( {welcomeMessage} v{MACRO.VERSION} {'…………………………………………………………………………………………………………………………………………………………'} {' '} {' '} {' '} {' ░░░░░░ '} {' ░░░ ░░░░░░░░░░ '} {' ░░░░░░░░░░░░░░░░░░░ '} {' '} {' ░░░░'} {' ██ '} {' ░░░░░░░░░░'} {' ██▒▒██ '} {' ▒▒ ██ ▒'} {' ▒▒░░▒▒ ▒ ▒▒'} {' '} {' '} ▗{' '}▖{' '} {' ▒▒ ▒▒ '} {' '} {' '.repeat(9)} {' ░ ▒ '} {'…………………'} {' '} {'……………………………………………………………………░…………………………▒…………'} ) } return ( {welcomeMessage} v{MACRO.VERSION} {'…………………………………………………………………………………………………………………………………………………………'} {' '} {' * █████▓▓░ '} {' * ███▓░ ░░ '} {' ░░░░░░ ███▓░ '} {' ░░░ ░░░░░░░░░░ ███▓░ '} {' ░░░░░░░░░░░░░░░░░░░ '} * {' ██▓░░ ▓ '} {' ░▓▓███▓▓░ '} {' * ░░░░ '} {' ░░░░░░░░ '} {' ░░░░░░░░░░░░░░░░ '} {' '} * {' '} {' '} ▗{' '}▖{' '} {' '} * {' '} {' '} {' '.repeat(9)} {' * '} {'…………………'} {' '} {'………………………………………………………………………………………………………………'} ) }