'use strict'; import React from 'react'; import Form from '../ascribe_forms/form'; import ApiUrls from '../../constants/api_urls'; import AscribeSpinner from '../ascribe_spinner'; import { getLangText } from '../../utils/lang_utils'; 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 (

} spinner={

}>

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

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

); } }); export default PieceDeleteForm;