/** * External dependencies */ import clsx from 'clsx'; /** * Internal dependencies */ import './style.scss'; export type LoadingAnimationProps = { readonly className?: string; readonly text?: string; }; export const LoadingAnimation = ( { className, text, }: LoadingAnimationProps ): JSX.Element => (
{ !! text && (

{ text }

) }
);