({ text })
| 14 | } |
| 15 | |
| 16 | export 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 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected