// @flow import React from 'react'; import PropTypes from 'prop-types'; import translate from 'translations'; export default class UnlockHeader extends React.Component { props: { title: string }; static propTypes = { title: PropTypes.string.isRequired }; state: { expanded: boolean } = { expanded: true }; render() { return (
{this.state.expanded ? '-' : '+'}

{translate(this.props.title)}

{this.state.expanded &&
{/* @@if (site === 'cx' ) { } @@if (site === 'mew' ) { } */}
} {this.state.expanded &&
}
); } toggleExpanded = () => { this.setState(state => { return { expanded: !state.expanded }; }); }; }