17 lines
380 B
TypeScript
Raw Normal View History

2016-05-14 14:26:17 +03:00
import React from 'react';
import Helmet from 'react-helmet';
2019-12-07 13:28:52 +02:00
import { FormattedMessage as Message, MessageDescriptor } from 'react-intl';
2016-05-14 14:26:17 +03:00
2019-12-07 13:28:52 +02:00
export default function AuthTitle({ title }: { title: MessageDescriptor }) {
return (
<Message {...title}>
{msg => (
<span>
{msg}
<Helmet title={msg} />
</span>
)}
</Message>
);
2016-05-14 14:26:17 +03:00
}