2
0
Files
bot/apps/builder/src/components/Seo.tsx

34 lines
1.0 KiB
TypeScript
Raw Normal View History

2021-11-29 15:19:07 +01:00
import Head from 'next/head'
export const Seo = ({
title,
description = 'Create and publish conversational forms that collect 4 times more answers and feel native to your product',
imagePreviewUrl = 'https://app.typebot.io/site-preview.png',
}: {
title: string
description?: string
currentUrl?: string
imagePreviewUrl?: string
}) => {
const formattedTitle = `${title} | Typebot`
2021-11-29 15:19:07 +01:00
return (
<Head>
<title>{formattedTitle}</title>
<meta name="title" content={title} />
<meta property="og:title" content={title} />
<meta property="twitter:title" content={title} />
2021-11-29 15:19:07 +01:00
<meta name="description" content={description} />
<meta property="twitter:description" content={description} />
<meta property="og:description" content={description} />
2021-11-29 15:19:07 +01:00
<meta property="og:image" content={imagePreviewUrl} />
<meta property="twitter:image" content={imagePreviewUrl} />
<meta property="og:type" content="website" />
<meta property="twitter:card" content="summary_large_image" />
</Head>
)
}