import React from 'react';
import GridLoader from 'react-spinners/esm/GridLoader';
import { corporateColors } from '../../../utilities/theme/brand';
export const LoadingIndicator = ({ state = true, width = null }) => {
    const styleLoading = {
        position: 'fixed',
        top: '50%',
        left: '50%',
        transform: 'translate(-50%, -50%)',
    };
    if (width != null) {
        styleLoading.width = width;
    }
    return (React.createElement("div", { style: styleLoading }, React.createElement(GridLoader, { size: 30, color: corporateColors.teal, loading: state })));
};
//# sourceMappingURL=LoadingIndicator.js.map