UNPKG

wix-style-react

Version:
39 lines (34 loc) 943 B
import React from 'react'; import { func } from 'prop-types'; import Button from '../Button'; import X from '../new-icons/X'; import Check from '../new-icons/Check'; import css from './ColorPickerActions.scss'; var ColorPickerActions = function ColorPickerActions(_ref) { var onCancel = _ref.onCancel, onConfirm = _ref.onConfirm; return React.createElement( 'div', { className: css.root }, React.createElement( Button, { height: 'small', theme: 'icon-standardsecondary', onClick: onCancel }, React.createElement(X, null) ), React.createElement( Button, { dataHook: 'color-picker-confirm-button', height: 'small', theme: 'icon-standard', onClick: onConfirm }, React.createElement(Check, null) ) ); }; ColorPickerActions.propTypes = { onCancel: func.isRequired, onConfirm: func.isRequired }; export default ColorPickerActions;