mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-09 05:25:15 -05:00
* Metamaps base prototype Fixed project scaffolding * Resolved all lint related issues Resolved all issues related to lint compliance
23 lines
610 B
TypeScript
23 lines
610 B
TypeScript
import { CircularProgress } from "@chakra-ui/core";
|
|
import { FC } from 'react';
|
|
import { connect } from 'react-redux';
|
|
|
|
import { LoadingContainer } from '../styles/Loading';
|
|
|
|
export interface LoadingInterface {
|
|
loading: boolean;
|
|
}
|
|
|
|
export const LoadingComponent: FC<LoadingInterface> = ({ loading }) => {
|
|
return(
|
|
<LoadingContainer style={{ opacity: loading ? 1 : 0}}>
|
|
<CircularProgress isIndeterminate color="blue" size="92px" />
|
|
</LoadingContainer>
|
|
);
|
|
}
|
|
|
|
export const Loading = connect(
|
|
(state: any) => ({
|
|
loading: state.loading,
|
|
})
|
|
)(LoadingComponent); |