import { Flex, Spinner, Text } from '@chakra-ui/react'; import { useTranslation } from 'react-i18next'; interface LoaderProps { showText?: boolean; text?: string; } // This component loads before the theme so we cannot use theme tokens here const Loading = (props: LoaderProps) => { const { t } = useTranslation(); const { showText = false, text = t('common.loadingInvokeAI') } = props; return ( {showText && ( {text} )} ); }; export default Loading;