UNPKG

@intility/bifrost-react-select

Version:

React select component for Intility's design system, Bifrost.

31 lines 753 B
import { c as _c } from "react-compiler-runtime"; import { Icon } from "@intility/bifrost-react"; import { components } from "react-select"; import { faXmark } from "@fortawesome/free-solid-svg-icons/faXmark"; import { jsx as _jsx } from "react/jsx-runtime"; const ClearIndicator = props => { const $ = _c(3); let t0; if ($[0] === Symbol.for("react.memo_cache_sentinel")) { t0 = /*#__PURE__*/_jsx(Icon, { widthAuto: true, icon: faXmark }); $[0] = t0; } else { t0 = $[0]; } let t1; if ($[1] !== props) { t1 = /*#__PURE__*/_jsx(components.ClearIndicator, { ...props, children: t0 }); $[1] = props; $[2] = t1; } else { t1 = $[2]; } return t1; }; export default ClearIndicator;