import React from 'react';
import {injectSheet} from '../../lib/theme';
import {withNamespaces} from "react-i18next";

const styling = () => ({});

class Content extends React.Component {
    render() {
        const {t} = this.props;
        return (
            <div>
                <h1>{t('title')}</h1>
                {this.props.match.params.section ?
                    <p>{t('choosen-section-is')}{this.props.match.params.section}</p> :
                    <p>{t('choose-section')}</p>}
            </div>
        );
    }
}

export default withNamespaces('page--content-section')(injectSheet(styling)(Content));
