@rainbow-me/rainbowkit
Version:
The best way to connect a wallet
49 lines (44 loc) • 1.48 kB
JavaScript
"use client";
// src/components/Icons/Spinner.tsx
import React, { useMemo } from "react";
// src/components/Icons/Icons.css.ts
var SpinnerIconClassName = "_1luule42";
var SpinnerIconPathClassName = "_1luule43";
// src/components/Icons/Spinner.tsx
var useRandomId = (prefix) => useMemo(
() => `${prefix}_${Math.round(Math.random() * 1e9)}`,
[prefix]
);
var SpinnerIcon = ({
height = 21,
width = 21
}) => {
const id = useRandomId("spinner");
return /* @__PURE__ */ React.createElement(
"svg",
{
className: SpinnerIconClassName,
fill: "none",
height,
viewBox: "0 0 21 21",
width,
xmlns: "http://www.w3.org/2000/svg"
},
/* @__PURE__ */ React.createElement("title", null, "Loading"),
/* @__PURE__ */ React.createElement("clipPath", { id }, /* @__PURE__ */ React.createElement("path", { d: "M10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18C11.3284 18 12 18.6716 12 19.5C12 20.3284 11.3284 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5C21 11.3284 20.3284 12 19.5 12C18.6716 12 18 11.3284 18 10.5C18 6.35786 14.6421 3 10.5 3Z" })),
/* @__PURE__ */ React.createElement(
"foreignObject",
{
clipPath: `url(#${id})`,
height: "21",
width: "21",
x: "0",
y: "0"
},
/* @__PURE__ */ React.createElement("div", { className: SpinnerIconPathClassName })
)
);
};
export {
SpinnerIcon
};