mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-17 21:53:03 +05:30
17 lines
380 B
TypeScript
17 lines
380 B
TypeScript
import React from 'react';
|
|
import Helmet from 'react-helmet';
|
|
import { FormattedMessage as Message, MessageDescriptor } from 'react-intl';
|
|
|
|
export default function AuthTitle({ title }: { title: MessageDescriptor }) {
|
|
return (
|
|
<Message {...title}>
|
|
{msg => (
|
|
<span>
|
|
{msg}
|
|
<Helmet title={msg} />
|
|
</span>
|
|
)}
|
|
</Message>
|
|
);
|
|
}
|