@grafana/ui
Version:
Grafana Components Library
19 lines (14 loc) • 561 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var jsxRuntime = require('react/jsx-runtime');
var ReactSelect = require('react-select');
;
const CustomInput = (props) => {
let testId;
if ("data-testid" in props.selectProps && props.selectProps["data-testid"]) {
testId = props.selectProps["data-testid"] + "-input";
}
return /* @__PURE__ */ jsxRuntime.jsx(ReactSelect.components.Input, { ...props, "data-testid": testId });
};
exports.CustomInput = CustomInput;
//# sourceMappingURL=CustomInput.cjs.map