UNPKG

@daimo/pay

Version:

Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.

21 lines (18 loc) 927 B
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 (jsx(CircleSpinner, { logo: jsx("img", { src: logoURI }), loading: false, unavailable: false })); } else { return jsx(SquircleSpinner, { logo: jsx("img", { src: logoURI }), loading: false }); } })(); return (jsx(LoadingContainer, { children: jsx(AnimationContainer, { "$circle": logoShape === "circle", children: jsx(AnimatePresence, { children: optionSpinner }) }) })); }; export { ExternalPaymentSpinner as default }; //# sourceMappingURL=index.js.map