src/Components/BidListMessages/RegisterSuccess.jsx
import PropTypes from 'prop-types';
import InteractiveElement from '../InteractiveElement';
const RegisterSuccess = ({ undo }) => (
<span>
Handshake successfully registered.
<InteractiveElement
type="a"
onClick={undo}
>
Undo
</InteractiveElement>.
</span>
);
RegisterSuccess.propTypes = {
undo: PropTypes.func.isRequired,
};
export default RegisterSuccess;