fui-fancyui
Version:
FancyUI Libary
19 lines (18 loc) • 514 B
JavaScript
"use client";
import { jsx as o } from "react/jsx-runtime";
import i, { keyframes as e } from "styled-components";
import s from "../../icons/SVGLoadingArrows/SVGLoadingArrows.js";
function g(n) {
const { isLoading: t, ...r } = n;
return t ? /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(s, { ...r }) }) : null;
}
const a = e`
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
`, m = i.span`
animation: ${a} 2s infinite ease-in-out;
line-height: 0;
`;
export {
g as default
};