UNPKG

@braineet/ui

Version:

Braineet design system

20 lines 1.06 kB
var _excluded = ["state"]; function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } import React from 'react'; import { useComboboxCancel } from 'ariakit/combobox'; import { ButtonCancel } from './combobox.sc'; import { jsx as _jsx } from "react/jsx-runtime"; export var ComboboxCancel = function ComboboxCancel(_ref) { var state = _ref.state, props = _objectWithoutPropertiesLoose(_ref, _excluded); var htmlProps = useComboboxCancel(_extends({ state: state }, props)); return /*#__PURE__*/_jsx(ButtonCancel, _extends({ icon: "cross", color: "black", styleType: "ghost", hasShadow: false }, htmlProps)); };