/** * WordPress dependencies */ import { Spinner } from '@safe-wordpress/components'; /** * Internal dependencies */ import './style.scss'; import Logo from './logo.svg'; export type LoadingAnimationProps = { readonly className?: string; readonly text?: string; readonly isSmall?: boolean; }; export const LoadingAnimation = ( { className = '', text, isSmall, }: LoadingAnimationProps ): JSX.Element => isSmall ? (
{ !! text && (
{ text }
) }
) : (
{ !! text && (

{ text }

) }
);