import React from 'react'; import cn from 'classnames'; import PropTypes from 'prop-types'; import styles from './ChangeUsername.css'; import { Button } from 'plugin-api/beta/client/components/ui'; const initialState = { editing: false, }; class ChangeUsername extends React.Component { state = initialState; render() { const { username, emailAddress } = this.props; return (

{username}

{emailAddress ?

{emailAddress}

: null}
Cancel
); } } ChangeUsername.propTypes = { changeUsername: PropTypes.func.isRequired, username: PropTypes.string, emailAddress: PropTypes.string, }; export default ChangeUsername;