import { Loader } from "@ax/components";

import * as S from "./style";

const Loading = (props: IProps): JSX.Element => {
	const { light = false } = props;
	return (
		<S.Wrapper data-testid="loading-wrapper" light={light}>
			<S.LoadingWrapper>
				<Loader name="circle" />
			</S.LoadingWrapper>
		</S.Wrapper>
	);
};

interface IProps {
	light?: boolean;
}

export default Loading;
