(props)
| 6 | } |
| 7 | |
| 8 | const ErrorTab: React.FC<Props> = (props) =>{ |
| 9 | const isEmptyString = (typeof props.error === 'string') && props.error == ""; |
| 10 | return ( |
| 11 | <div className="alert alert-danger" role="alert"> |
| 12 | {isEmptyString ? errorToString("Content not found") : errorToString(props.error)} |
| 13 | </div> |
| 14 | ) |
| 15 | } |
| 16 | |
| 17 | export { |
| 18 | ErrorTab |
nothing calls this directly
no test coverage detected