MCPcopy Create free account
hub / github.com/algolia/docsearch / ErrorScreen

Function ErrorScreen

packages/docsearch-react/src/ErrorScreen.tsx:14–26  ·  view source on GitHub ↗
({ translations = {} }: ErrorScreenProps)

Source from the content-addressed store, hash-verified

12};
13
14export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected