({ translations = {} }: ErrorScreenProps)
| 12 | }; |
| 13 | |
| 14 | export function ErrorScreen({ translations = {} }: ErrorScreenProps): JSX.Element { |
| 15 | const { titleText = 'Unable to fetch results', helpText = 'You might want to check your network connection.' } = |
| 16 | translations; |
| 17 | return ( |
| 18 | <div className="DocSearch-ErrorScreen"> |
| 19 | <div className="DocSearch-Screen-Icon"> |
| 20 | <ErrorIcon /> |
| 21 | </div> |
| 22 | <p className="DocSearch-Title">{titleText}</p> |
| 23 | <p className="DocSearch-Help">{helpText}</p> |
| 24 | </div> |
| 25 | ); |
| 26 | } |
nothing calls this directly
no outgoing calls
no test coverage detected