import React from 'react'; import PropTypes from 'prop-types'; import {gettext} from 'core/utils'; export const ActionBar: React.StatelessComponent = ({svc, readOnly, dirty, valid, onSave, onCancel}) => (
{!readOnly && ( )}
); ActionBar.propTypes = { svc: PropTypes.object.isRequired, onSave: PropTypes.func, onCancel: PropTypes.func, readOnly: PropTypes.bool, dirty: PropTypes.bool, valid: PropTypes.bool, };