import React from 'react'; import { Button, Layer, Tile } from '@carbon/react'; import { useTranslation } from 'react-i18next'; import { EmptyDataIllustration } from './empty-data-illustration.component'; import { useLayoutType } from '@openmrs/esm-framework'; import styles from './empty-state.scss'; export interface EmptyStateProps { displayText: string; headerTitle: string; launchForm?(): void; } export const EmptyState: React.FC = (props) => { const { t } = useTranslation('@openmrs/esm-patient-chart-app'); const isTablet = useLayoutType() === 'tablet'; return (

{props.headerTitle}

{t('emptyStateText', 'There are no {{displayText}} to display for this patient', { displayText: props.displayText, })}

{props.launchForm && ( )}

); };