22 lines
527 B
TypeScript
22 lines
527 B
TypeScript
import Head from "next/head"
|
|
import React from "react"
|
|
|
|
export const DEFAULT_TITLE = "SuperRichQuiz Admin"
|
|
export const DEFAULT_DESCRIPTION = "SuperRichQuiz Admin"
|
|
|
|
interface ISeoHeadProps {
|
|
title?: string
|
|
description?: string
|
|
}
|
|
|
|
const SeoHead = ({ title, description }: ISeoHeadProps) => {
|
|
return (
|
|
<Head>
|
|
<title>{title ? `${title} | ${DEFAULT_TITLE}` : DEFAULT_TITLE}</title>
|
|
<meta name="description" content={description ?? DEFAULT_DESCRIPTION} />
|
|
</Head>
|
|
)
|
|
}
|
|
|
|
export default React.memo(SeoHead)
|