import React, {Component} from 'react';
import Translate from '../Translate';
import './style.scss';

class Copyright extends Component {

    getLinks() {
        if (TYPE !== 'publisher') {
            return null;
        }

        return (
            <div
                className="Copyright__links"
            >
                <a
                    href="https://propellerads.com/privacy/"
                    target="_blank"
                    rel="noopener noreferrer"
                >

                    <Translate tag="copyright_privacy" />
                </a>
                <a
                    href="https://propellerads.com/opt-out/"
                    rel="noopener noreferrer"
                >
                    <Translate tag="copyright_opt-out" />
                </a>
                <a
                    href="https://propellerads.com/terms/#pterms"
                    target="_blank"
                    rel="noopener noreferrer"
                >
                    <Translate tag="copyright_terms" />
                </a>
            </div>
        );
    }

    render() {
        return (
            <div className="Copyright">
                <div className="Copyright__info">
                    Copyright © PropellerAds {(new Date()).getFullYear()}
                </div>
                {this.getLinks()}
            </div>
        );
    }
}

export default Copyright;
