Title.tsx 313 字节
Newer Older
1
import React, {FunctionComponent} from 'react';
2

3 4 5 6 7 8 9 10 11 12 13 14
import Head from 'next/head';

const Title: FunctionComponent = ({children: title}) => (
    <Head>
        <title>
            {'string' === typeof title ? `${title} - ` : ''}
            {process.env.title}
        </title>
    </Head>
);

export default Title;