MCPcopy Create free account
hub / github.com/anus-dev/ANUS / ErrorMessage

Function ErrorMessage

packages/cli/src/ui/components/messages/ErrorMessage.tsx:16–32  ·  view source on GitHub ↗
({ text })

Source from the content-addressed store, hash-verified

14}
15
16export const ErrorMessage: React.FC<ErrorMessageProps> = ({ text }) => {
17 const prefix = '✕ ';
18 const prefixWidth = prefix.length;
19
20 return (
21 <Box flexDirection="row" marginBottom={1}>
22 <Box width={prefixWidth}>
23 <Text color={Colors.AccentRed}>{prefix}</Text>
24 </Box>
25 <Box flexGrow={1}>
26 <Text wrap="wrap" color={Colors.AccentRed}>
27 {text}
28 </Text>
29 </Box>
30 </Box>
31 );
32};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected