wix-style-react
Version:
32 lines (30 loc) • 1.09 kB
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import X from 'wix-ui-icons-common/X';
import Check from 'wix-ui-icons-common/Check';
import IconButton from '../IconButton';
import { DataHooks } from './constants';
import { classes } from './ColorPickerActions.st.css';
var ColorPickerActions = function ColorPickerActions(_ref) {
var onCancel = _ref.onCancel,
onConfirm = _ref.onConfirm,
disabled = _ref.disabled;
return /*#__PURE__*/React.createElement("div", {
className: classes.root
}, /*#__PURE__*/React.createElement(IconButton, {
dataHook: DataHooks.cancelButton,
size: "small",
priority: "secondary",
onClick: onCancel
}, /*#__PURE__*/React.createElement(X, null)), /*#__PURE__*/React.createElement(IconButton, {
dataHook: DataHooks.confirmButton,
size: "small",
disabled: disabled,
onClick: onConfirm
}, /*#__PURE__*/React.createElement(Check, null)));
};
ColorPickerActions.propTypes = {
onCancel: PropTypes.func.isRequired,
onConfirm: PropTypes.func.isRequired
};
export default ColorPickerActions;