17 lines
462 B
TypeScript
Raw Normal View History

2016-05-14 14:26:17 +03:00
import React from 'react';
import { Helmet } from 'react-helmet-async';
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 }) {
2020-05-24 02:08:24 +03:00
return (
<Message {...title}>
{(msg) => (
<span>
{msg}
<Helmet title={msg as string} />
</span>
)}
</Message>
);
2016-05-14 14:26:17 +03:00
}