import React, { type JSX } from 'react'; import { ErrorIcon } from './icons'; export type ErrorScreenTranslations = Partial<{ titleText: string; helpText: string; }>; type ErrorScreenProps = { translations?: ErrorScreenTranslations; }; export function ErrorScreen({ translations = {}, }: ErrorScreenProps): JSX.Element { const { titleText = 'Unable to fetch results', helpText = 'You might want to check your network connection.', } = translations; return (
{titleText}
{helpText}