import React from 'react';
import {MdDescription} from 'react-icons/md';
import {withNamespaces} from 'react-i18next';

import {injectSheet} from '../../../lib/theme';

const styling = theme => ({
    wrapper: {
        margin: 0,
        display: 'flex',
        //flexDirection:
        alignItems: 'center'
    }
});

class MainText extends React.Component {

    render() {
        const {t, classes} = this.props;

        return (
            <React.Fragment>
                <div className={classes.wrapper}>
                    <MdDescription size={24}/>
                    {t('block.mainText')}
                </div>
            </React.Fragment>
        );
    };
}

export default withNamespaces('page--content-article')(injectSheet(styling)(MainText));