import { gtmHeadSnippet } from '@/lib/google-tag-manager' import { Metadata } from '@typebot.io/schemas' import Head from 'next/head' import Script from 'next/script' import React from 'react' import { isNotEmpty } from '@typebot.io/lib' type SEOProps = { url: string typebotName: string metadata: Metadata } export const SEO = ({ url, typebotName, metadata: { title, description, favIconUrl, imageUrl, googleTagManagerId }, }: SEOProps) => ( <> {title ?? typebotName} {isNotEmpty(googleTagManagerId) && ( )} )