import React, { FC } from 'react'; import { Color, Text } from 'ink'; import figures from 'figures'; interface ErrorLabelProps { errorType?: string } export const ErrorLabel:FC = (props) => { let msg = props.errorType ? `${props.errorType.toUpperCase()} ERROR` : 'ERROR'; return ( {` ${figures.cross} ${msg} `} ) } export default ErrorLabel;