// @flow import * as React from "react"; import { observer, inject } from "mobx-react"; import { Helmet } from "react-helmet"; import AuthStore from "stores/AuthStore"; type Props = { title: string, favicon?: string, auth: AuthStore, }; const PageTitle = observer(({ auth, title, favicon }: Props) => { const { team } = auth; return ( {team && team.name ? `${title} - ${team.name}` : `${title} - Outline`} ); }); export default inject("auth")(PageTitle);