@shopify/polaris
Version:
Shopify’s product component library
19 lines (15 loc) • 573 B
JavaScript
import { objectWithoutProperties as _objectWithoutProperties } from '../../_virtual/_rollupPluginBabelHelpers.js';
import React$1 from 'react';
import { UnstyledButton as UnstyledButton$1 } from './UnstyledButton.js';
function unstyledButtonFrom(_ref, overrides, key) {
var {
content,
onAction
} = _ref,
action = _objectWithoutProperties(_ref, ["content", "onAction"]);
return /*#__PURE__*/React$1.createElement(UnstyledButton$1, Object.assign({
key: key,
onClick: onAction
}, action, overrides), content);
}
export { unstyledButtonFrom };