import { FC } from "react"; import Head from "next/head"; import { useColorModeValue } from "@chakra-ui/react"; import theme from "@theme"; type Props = { customTitle?: string, home?: boolean }; const title = "Lingva Translate"; const description = "Alternative front-end for Google Translate, serving as a Free and Open Source translator with over a hundred languages available"; const siteDomain = process.env["NEXT_PUBLIC_SITE_DOMAIN"]; const url = siteDomain && (siteDomain.includes("localhost") ? "http://" : "https://") + siteDomain; const CustomHead: FC = ({ customTitle, home }) => { const fullTitle = customTitle ? `${customTitle} | ${title}` : title; const themeColor = useColorModeValue(theme.colors.lingva["100"], theme.colors.lingva["900"]); return ( {fullTitle} {home && } ); }; export default CustomHead;