2022-03-24 15:01:50 +01:00
|
|
|
import Head from 'next/head'
|
|
|
|
|
2022-04-12 16:47:21 +02:00
|
|
|
import { projectConfig } from 'utils/config'
|
2022-03-24 15:01:50 +01:00
|
|
|
|
|
|
|
interface HeadProps {
|
|
|
|
longName?: string
|
|
|
|
shortName?: string
|
|
|
|
}
|
|
|
|
|
|
|
|
const NextHead: React.FC<HeadProps> = (props) => {
|
|
|
|
const {
|
|
|
|
longName = projectConfig.longName,
|
2022-04-12 16:47:21 +02:00
|
|
|
shortName = projectConfig.shortName
|
2022-03-24 15:01:50 +01:00
|
|
|
} = props
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Head>
|
|
|
|
<title>
|
|
|
|
{props.longName == null
|
|
|
|
? longName
|
|
|
|
: props.shortName == null && shortName}
|
|
|
|
</title>
|
|
|
|
|
|
|
|
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
|
|
|
|
</Head>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default NextHead
|