import {ReactElement} from "react" import {useTranslation} from "react-i18next" import {Grid, Typography} from "@mui/material" export interface SimpleOverlayInformationProps { label: string emptyText?: string icon?: ReactElement children?: ReactElement | string | boolean | null } export default function SimpleOverlayInformation({ label, emptyText, icon, children, }: SimpleOverlayInformationProps): ReactElement { const {t} = useTranslation() const emptyTextValue = emptyText ?? t("general.emptyValue") return ( {label} {icon && {icon}} {children || {emptyTextValue}} ) }