@reservoir0x/relay-kit-ui
Version:
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
20 lines • 894 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const index_js_1 = require("../primitives/index.js");
const LoadingSpinner_js_1 = require("../common/LoadingSpinner.js");
const FetchingQuoteLoader = ({ isLoading, containerCss }) => {
if (!isLoading) {
return null;
}
return ((0, jsx_runtime_1.jsxs)(index_js_1.Flex, { align: "center", css: {
gap: 14,
mb: '3',
mt: '1',
p: '3 0',
m: '0 auto',
...containerCss
}, children: [(0, jsx_runtime_1.jsx)(LoadingSpinner_js_1.LoadingSpinner, { css: { height: 16, width: 16 } }), (0, jsx_runtime_1.jsx)(index_js_1.Text, { style: "subtitle2", children: "Fetching the best price" })] }));
};
exports.default = FetchingQuoteLoader;
//# sourceMappingURL=FetchingQuoteLoader.js.map