UNPKG

@braineet/ui

Version:

Braineet design system

20 lines 1.23 kB
var _excluded = ["state"]; function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } 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)); };