CoastalCommitsPastes/client/components/page-seo/index.tsx

24 lines
484 B
TypeScript

import React from "react"
type PageSeoProps = {
title?: string
description?: string | null
isLoading?: boolean
isPrivate?: boolean
}
const PageSeo = ({
title = "Drift",
description = "A self-hostable clone of GitHub Gist",
isPrivate = false
}: PageSeoProps) => {
return (
<>
<title>Drift - {title}</title>
{!isPrivate && <meta name="description" content={description} />}
{isPrivate && <meta name="robots" content="noindex" />}
</>
)
}
export default PageSeo