2016-05-14 14:26:17 +03:00
|
|
|
import React from 'react';
|
2019-12-30 09:29:39 +02:00
|
|
|
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 }) {
|
2019-11-27 11:03:32 +02:00
|
|
|
return (
|
|
|
|
<Message {...title}>
|
2020-05-20 19:35:52 +03:00
|
|
|
{(msg) => (
|
2019-11-27 11:03:32 +02:00
|
|
|
<span>
|
|
|
|
{msg}
|
2019-12-30 10:47:29 +02:00
|
|
|
<Helmet title={msg as string} />
|
2019-11-27 11:03:32 +02:00
|
|
|
</span>
|
|
|
|
)}
|
|
|
|
</Message>
|
|
|
|
);
|
2016-05-14 14:26:17 +03:00
|
|
|
}
|