23 lines
518 B
TypeScript
Raw Normal View History

import React, { FC } 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
interface Props {
title: MessageDescriptor;
}
const AuthTitle: FC<Props> = ({ title }) => {
2020-05-24 02:08:24 +03:00
return (
<Message {...title}>
{(msg) => (
<span>
{msg}
<Helmet title={msg as string} />
</span>
)}
</Message>
);
};
export default AuthTitle;