accounts-frontend/packages/app/components/auth/AuthTitle.tsx

17 lines
400 B
TypeScript
Raw Normal View History

2016-05-14 16:56:17 +05:30
import React from 'react';
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 }) {
return (
<Message {...title}>
{msg => (
<span>
{msg}
2019-12-30 14:17:29 +05:30
<Helmet title={msg as string} />
</span>
)}
</Message>
);
2016-05-14 16:56:17 +05:30
}