import { useTranslation } from 'react-i18next' type LoadingBrandedTypes = { loadProgress: number // Percentage label?: string error?: string | null } export default function LoadingBranded({ loadProgress, label, error, }: LoadingBrandedTypes) { const { t } = useTranslation() return (
{error ? (

{error}

) : (
{label || t('loading')}
)}
) }