// @flow import { SITE_NAME, SITE_HELP_EMAIL } from 'config'; import * as ICONS from 'constants/icons'; import * as React from 'react'; import Button from 'component/button'; import Page from 'component/page'; import Card from 'component/common/card'; import I18nMessage from 'component/i18nMessage'; import { getAuthToken } from 'util/saved-passwords'; import CopyableText from 'component/copyableText'; import * as MODALS from 'constants/modal_types'; type Props = { announcement: string, doOpenModal: (string, ?{}) => void, user: any, }; export default function HelpPage(props: Props) { const { announcement, doOpenModal, user } = props; const canViewToken = process.env.ENABLE_WIP_FEATURES || (user && user.internal_feature); const authToken = canViewToken && getAuthToken(); return ( {announcement && (