@chayns-components/core
Version:
A set of beautiful React components for developing your own applications with chayns.
14 lines • 623 B
JavaScript
import React from 'react';
import { StyledWaitCursor, StyledWaitCursorBackground, StyledWaitCursorWaitCursor } from './WaitCursor.styles';
const WaitCursor = ({
color,
shouldHideBackground = false,
shouldHideWaitCursor = false
}) => /*#__PURE__*/React.createElement(StyledWaitCursor, {
$shouldShowWaitCursor: !shouldHideWaitCursor
}, /*#__PURE__*/React.createElement(StyledWaitCursorWaitCursor, {
$color: color
}), !shouldHideBackground && /*#__PURE__*/React.createElement(StyledWaitCursorBackground, null));
WaitCursor.displayName = 'WaitCursor';
export default WaitCursor;
//# sourceMappingURL=WaitCursor.js.map