UNPKG

@intility/bifrost-react-select

Version:

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

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