UNPKG

@yak-spirit/yak-swap-ui

Version:

A reusable React component for swapping with Yield Yak Router. The YY Router can be found [here](https://github.com/yieldyak/yak-aggregator).

14 lines (13 loc) 572 B
import { jsx as _jsx } from "react/jsx-runtime"; import classNames from 'classnames'; const loadingGif = 'https://raw.githubusercontent.com/dragoonzx/yak-spirit-api/main/src/assets/gif/loading-unscreen.gif'; // const loadingGif = 'https://i.ibb.co/4MNvsVc/loading-unscreen.gif'; const SpiritLoader = ({ size = 'medium', className }) => { const sizeClass = { small: 'h-8', medium: 'h-16', big: 'h-32', }[size]; return _jsx("img", { src: loadingGif, className: classNames(sizeClass, className) }, void 0); }; export default SpiritLoader;