UNPKG

@hisptz/react-ui

Version:

A collection of reusable complex DHIS2 react ui components.

21 lines 638 B
import { CenteredContent, CircularLoader, colors } from "@dhis2/ui"; import PropTypes from "prop-types"; import React from "react"; export default function Loader(_ref) { let { text } = _ref; return /*#__PURE__*/React.createElement("div", { className: "column center", style: { height: "100%" } }, /*#__PURE__*/React.createElement(CenteredContent, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CircularLoader, null), /*#__PURE__*/React.createElement("p", { style: { color: colors.default } }, text)))); } Loader.propTypes = { text: PropTypes.string };