'use strict'; import React from 'react'; import Form from '../ascribe_forms/form'; import ApiUrls from '../../constants/api_urls'; import { getLangText } from '../../utils/lang_utils'; import { SubmitDangerButton } from '../../lib/buttons'; let PieceDeleteForm = React.createClass({ propTypes: { pieceId: React.PropTypes.number, // Propagated by ModalWrapper in most cases handleSuccess: React.PropTypes.func }, getFormData() { return { piece_id: this.props.pieceId }; }, render() { return (
{getLangText('YES, DELETE')}}>

{getLangText('Are you sure you would like to permanently delete this piece')}?

{getLangText('This is an irrevocable action%s', '.')}

); } }); export default PieceDeleteForm;