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