import { FC } from "react"; import { Flex, VStack, Button, Link, useColorModeValue } from "@chakra-ui/react"; import Head from "next/head"; import Header from "./Header"; import Footer from "./Footer"; type Props = { customTitle?: string, home?: true [key: string]: any }; 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 Layout: FC = ({ customTitle, children, home, ...props }) => ( <> {customTitle ?? title} {home && }
{children}