import React from 'react'; import PropTypes from 'prop-types'; import { siteRoot, gettext } from '../../utils/constants'; import { Link } from '@reach/router'; const propTypes = { currentTab: PropTypes.string.isRequired, children: PropTypes.oneOfType([ PropTypes.array, PropTypes.object ]).isRequired, }; class DraftsView extends React.Component { constructor(props) { super(props); this.state = { currentTab: this.props.currentTab }; } tabItemClick = (param) => { this.setState({ currentTab: param }); } render() { return (