@hisptz/react-ui
Version:
A collection of reusable complex DHIS2 react ui components.
26 lines • 729 B
JavaScript
import { CenteredContent, CircularLoader, colors } from "@dhis2/ui";
import PropTypes from "prop-types";
import React from "react";
export default function FullPageLoader(_ref) {
let {
text,
small
} = _ref;
return /*#__PURE__*/React.createElement("div", {
className: "column center",
style: {
height: "100%",
width: '100%'
}
}, /*#__PURE__*/React.createElement(CenteredContent, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CircularLoader, {
small: small
}), /*#__PURE__*/React.createElement("p", {
style: {
color: colors.default
}
}, text))));
}
FullPageLoader.propTypes = {
small: PropTypes.bool,
text: PropTypes.string
};