CoastalCommitsPastes/client/components/head/index.tsx

27 lines
462 B
TypeScript
Raw Normal View History

2022-04-09 20:48:19 -04:00
import Head from "next/head"
import React from "react"
type PageSeoProps = {
2022-04-09 20:48:19 -04:00
title?: string
description?: string
isLoading?: boolean
isPrivate?: boolean
}
const PageSeo = ({
2022-04-09 20:48:19 -04:00
title = "Drift",
description = "A self-hostable clone of GitHub Gist",
isPrivate = false
}: PageSeoProps) => {
2022-04-09 20:48:19 -04:00
return (
<>
<Head>
<title>{title}</title>
{!isPrivate && <meta name="description" content={description} />}
</Head>
</>
)
}
2022-04-09 20:48:19 -04:00
export default PageSeo