import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { FormattedMessage, defineMessages, injectIntl, } from 'react-intl' import { openModal } from '../actions/modal' import { repository, source_url, me, } from '../initial_state' import { CX, DEFAULT_REL } from '../constants' import Text from './text' import Button from './button' class LinkFooter extends React.PureComponent { render() { const { intl, noPadding, onOpenHotkeys, } = this.props const currentYear = new Date().getFullYear() const linkFooterItems = [ { href: 'https://help.gab.com', text: intl.formatMessage(messages.help), }, // : todo : // { // onClick: onOpenHotkeys, // text: intl.formatMessage(messages.hotkeys), // requiresUser: true, // }, { href: '/auth/edit', text: intl.formatMessage(messages.security), requiresUser: true, }, { to: '/about', text: intl.formatMessage(messages.about), }, { to: '/about/tos', text: intl.formatMessage(messages.terms), }, { to: '/about/dmca', text: intl.formatMessage(messages.dmca), }, { to: '/about/sales', text: intl.formatMessage(messages.salesTerms), }, { to: '/about/privacy', text: intl.formatMessage(messages.privacy), }, { href: '/auth/sign_out', text: intl.formatMessage(messages.logout), requiresUser: true, logout: true, }, ] const containerClasses = CX({ d: 1, px10: !noPadding, mb15: 1, }) return (