import { t } from "i18next"; import styles from "./LoadingIndicator.module.css"; import { LoadingSpinIcon } from "./LoadingSpinIcon"; export type LoadingIndicatorProps = { look?: "dark" | string; size?: number; active?: boolean; title?: string; subtitle?: string; }; export const LoadingIndicator = ({ active = true, look = "dark", title = t("components.loading_indicator.title"), subtitle = "", }: LoadingIndicatorProps) => { const isDark = look === "dark"; const loadingSpinClassName = isDark ? "text-brand" : "text-white"; if (!active) { return; } return (
{/**/} {title ? (

{title}

) : null} {subtitle ? (

{subtitle}

) : null}
); }; LoadingIndicator.displayName = "LoadingIndicator";