@daimo/pay
Version:
Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.
30 lines (27 loc) • 1.06 kB
JavaScript
import { jsx } from 'react/jsx-runtime';
import { AnimatePresence } from 'framer-motion';
import CircleSpinner from '../CircleSpinner/index.js';
import SquircleSpinner from '../SquircleSpinner/index.js';
import { LoadingContainer, AnimationContainer } from '../styles.js';
const ExternalPaymentSpinner = ({
logoURI,
logoShape
}) => {
const optionSpinner = (() => {
if (logoShape === "circle") {
return /* @__PURE__ */ jsx(
CircleSpinner,
{
logo: /* @__PURE__ */ jsx("img", { src: logoURI }),
loading: false,
unavailable: false
}
);
} else {
return /* @__PURE__ */ jsx(SquircleSpinner, { logo: /* @__PURE__ */ jsx("img", { src: logoURI }), loading: false });
}
})();
return /* @__PURE__ */ jsx(LoadingContainer, { children: /* @__PURE__ */ jsx(AnimationContainer, { $circle: logoShape === "circle", children: /* @__PURE__ */ jsx(AnimatePresence, { children: optionSpinner }) }) });
};
export { ExternalPaymentSpinner as default };
//# sourceMappingURL=index.js.map