metadata-based-explorer1
Version:
Box UI Elements
25 lines (23 loc) • 989 B
JavaScript
/**
*
* @file Comment Input Controls components for CommentForm
*/
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
import Button from '../../../../components/button/Button';
import PrimaryButton from '../../../../components/primary-button/PrimaryButton';
import messages from './messages';
import { ACTIVITY_TARGETS } from '../../../common/interactionTargets';
var CommentInputControls = function CommentInputControls(_ref) {
var onCancel = _ref.onCancel;
return React.createElement("div", {
className: "bcs-CommentFormControls"
}, React.createElement(Button, {
"data-resin-target": ACTIVITY_TARGETS.APPROVAL_FORM_CANCEL,
onClick: onCancel,
type: "button"
}, React.createElement(FormattedMessage, messages.commentCancel)), React.createElement(PrimaryButton, {
"data-resin-target": ACTIVITY_TARGETS.APPROVAL_FORM_POST
}, React.createElement(FormattedMessage, messages.commentPost)));
};
export default CommentInputControls;