2016-05-14 16:56:17 +05:30
|
|
|
import React from 'react';
|
2019-12-30 12:59:39 +05:30
|
|
|
import { Helmet } from 'react-helmet-async';
|
2019-12-07 16:58:52 +05:30
|
|
|
import { FormattedMessage as Message, MessageDescriptor } from 'react-intl';
|
2016-05-14 16:56:17 +05:30
|
|
|
|
2019-12-07 16:58:52 +05:30
|
|
|
export default function AuthTitle({ title }: { title: MessageDescriptor }) {
|
2019-11-27 14:33:32 +05:30
|
|
|
return (
|
|
|
|
<Message {...title}>
|
2020-05-20 22:05:52 +05:30
|
|
|
{(msg) => (
|
2019-11-27 14:33:32 +05:30
|
|
|
<span>
|
|
|
|
{msg}
|
2019-12-30 14:17:29 +05:30
|
|
|
<Helmet title={msg as string} />
|
2019-11-27 14:33:32 +05:30
|
|
|
</span>
|
|
|
|
)}
|
|
|
|
</Message>
|
|
|
|
);
|
2016-05-14 16:56:17 +05:30
|
|
|
}
|