import React from "react"; import { Spinner } from "react-bootstrap"; import cx from "classnames"; import { useIntl } from "react-intl"; interface ILoadingProps { message?: string; inline?: boolean; small?: boolean; card?: boolean; } const CLASSNAME = "LoadingIndicator"; const CLASSNAME_MESSAGE = `${CLASSNAME}-message`; export const LoadingIndicator: React.FC = ({ message, inline = false, small = false, card = false, }) => { const intl = useIntl(); const text = intl.formatMessage({ id: "loading.generic" }); return (
{text} {message !== "" && (

{message ?? text}

)}
); };