Files
govoplan-core/webui/src/components/LoadingIndicator.tsx
T
zemion 635d25c74c
Dependency Audit / dependency-audit (push) Has been cancelled
Module Matrix / module-matrix (push) Has been cancelled
chore: consolidate platform split checks
2026-07-10 12:51:19 +02:00

16 lines
594 B
TypeScript

import { usePlatformLanguage } from "../i18n/LanguageContext";
type LoadingIndicatorProps = {
label?: string;
size?: "sm" | "md";
};
export default function LoadingIndicator({ label = "i18n:govoplan-core.loading.8f26c652", size = "sm" }: LoadingIndicatorProps) {
const { translateText } = usePlatformLanguage();
const translatedLabel = translateText(label);
return (
<span className={`loading-indicator loading-indicator-${size}`} role="status" aria-label={translatedLabel} title={translatedLabel}>
<span className="loading-envelope" aria-hidden="true" />
</span>);
}