accounts-frontend/src/components/auth/AuthTitle.js

14 lines
333 B
JavaScript
Raw Normal View History

2017-06-13 01:02:59 +05:30
// @flow
2016-05-14 16:56:17 +05:30
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage as Message } from 'react-intl';
2017-06-13 01:02:59 +05:30
export default function AuthTitle({title}: {title: {id: string}}) {
2016-05-14 16:56:17 +05:30
return (
<Message {...title}>
{(msg) => <span>{msg}<Helmet title={msg} /></span>}
</Message>
);
}