import { ReactNode } from 'react' import { useTranslation } from '@/i18n' import './loading-spinner.css' interface LoadingSpinnerProps { message?: string | undefined ariaLabel?: string | undefined } /** * A ring spinner with a message. Defaults come from the i18n bundle so a * bare `` reads correctly in either language; callers * with a more specific message ("Laddar kalender…") pass it in. */ export function LoadingSpinner({ message, ariaLabel }: LoadingSpinnerProps): ReactNode { const { t } = useTranslation() return (

{message ?? t('common.loadingEllipsis')}

) }