{"version":3,"file":"InlineSpinner.cjs","names":[],"sources":["../../../src/components/InlineSpinner/InlineSpinner.tsx"],"sourcesContent":["/*\nCopyright 2024 New Vector Ltd.\n\nSPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial\nPlease see LICENSE files in the repository root for full details.\n*/\n\nimport React, { type SVGAttributes, forwardRef } from \"react\";\nimport classNames from \"classnames\";\nimport styles from \"./InlineSpinner.module.css\";\nimport SpinnerIcon from \"@vector-im/compound-design-tokens/assets/web/icons/spinner\";\n\ntype InlineSpinnerProps = {\n  size?: number;\n} & SVGAttributes<SVGElement>;\n\nexport const InlineSpinner = forwardRef<SVGSVGElement, InlineSpinnerProps>(\n  function InlineSpinner({ size = 20, className, ...props }, ref) {\n    return (\n      <SpinnerIcon\n        ref={ref}\n        className={classNames(styles.icon, className)}\n        style={{ width: size, height: size }}\n        {...props}\n      />\n    );\n  },\n);\n"],"mappings":";;;;;;;;;;AAgBA,IAAa,iBAAA,GAAA,MAAA,YACX,SAAS,cAAc,EAAE,OAAO,IAAI,WAAW,GAAG,SAAS,KAAK;AAC9D,QACE,iBAAA,GAAA,kBAAA,KAAC,2DAAA,SAAD;EACO;EACL,YAAA,GAAA,WAAA,SAAsB,6BAAA,QAAO,MAAM,UAAU;EAC7C,OAAO;GAAE,OAAO;GAAM,QAAQ;GAAM;EACpC,GAAI;EACJ,CAAA;EAGP"}