import React, { Component } from 'react'
import Route from '../components/templates/Route'
import AssetsUser from '../components/organisms/AssetsUser'
import Web3message from '../components/organisms/Web3message'
import { User } from '../context'
import Content from '../components/atoms/Content'

export default class History extends Component {
    public render() {
        return (
            <Route title="History">
                <Content>
                    {(!this.context.isLogged ||
                        !this.context.isOceanNetwork) && <Web3message />}

                    <AssetsUser list />
                </Content>
            </Route>
        )
    }
}

History.contextType = User
