UNPKG

feeles-ide

Version:

The hackable and serializable IDE to make learning material

37 lines (30 loc) 994 B
import _extends from 'babel-runtime/helpers/extends'; import _Object$assign from 'babel-runtime/core-js/object/assign'; import React from 'react'; import PropTypes from 'prop-types'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; var Confirm = function Confirm(props) { var style = _Object$assign({ marginRight: 20 }, props.style); return React.createElement(RaisedButton, _extends({}, props, { style: style })); }; Confirm.propTypes = { label: PropTypes.string.isRequired, onClick: PropTypes.func.isRequired, style: PropTypes.object }; Confirm.defaultProps = { primary: true }; var Abort = function Abort(props) { var style = _Object$assign({ marginRight: 20 }, props.style); return React.createElement(FlatButton, _extends({}, props, { style: style })); }; Abort.propTypes = { onClick: PropTypes.func.isRequired, style: PropTypes.object }; Abort.defaultProps = { label: 'Cancel' }; export { Confirm, Abort };