'use strict'; import React from 'react'; import Form from '../ascribe_forms/form'; import AclInformation from '../ascribe_buttons/acl_information'; import AscribeSpinner from '../ascribe_spinner'; import { getLangText } from '../../utils/lang'; import { formatText } from '../../utils/text'; import { resolveUrl } from '../../utils/url_resolver'; let PieceDeleteForm = React.createClass({ propTypes: { pieceId: React.PropTypes.number, // Propagated by ModalWrapper in most cases handleSuccess: React.PropTypes.func }, getUrl() { return formatText(resolveUrl('piece'), { pieceId: this.props.pieceId }); }, render() { return (

} spinner={

}>

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

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

); } }); export default PieceDeleteForm;