@graphiql/react
Version:
[Changelog](https://github.com/graphql/graphiql/blob/main/packages/graphiql-react/CHANGELOG.md) | [API Docs](https://graphiql-test.netlify.app/typedoc/modules/graphiql_react.html) | [NPM](https://www.npmjs.com/package/@graphiql/react)
33 lines (32 loc) • 743 B
JavaScript
import { jsx } from "react/jsx-runtime";
import { c } from "react-compiler-runtime";
import { forwardRef } from "react";
/* empty css */
import { clsx } from "clsx";
const Spinner = forwardRef((props, ref) => {
const $ = c(6);
let t0;
if ($[0] !== props.className) {
t0 = clsx("graphiql-spinner", props.className);
$[0] = props.className;
$[1] = t0;
} else {
t0 = $[1];
}
let t1;
if ($[2] !== props || $[3] !== ref || $[4] !== t0) {
t1 = /* @__PURE__ */ jsx("div", { ...props, ref, className: t0 });
$[2] = props;
$[3] = ref;
$[4] = t0;
$[5] = t1;
} else {
t1 = $[5];
}
return t1;
});
Spinner.displayName = "Spinner";
export {
Spinner
};
//# sourceMappingURL=index.js.map