import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import Image from "next/image"; import Link from "next/link"; import { ToastContainer, Zoom } from "react-toastify"; import GoogleAnalytics from "@/app/_components/GoogleAnalytics"; import "@/app/globals.css"; import { Suspense } from "react"; const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"], }); const geistMono = Geist_Mono({ variable: "--font-geist-mono", subsets: ["latin"], }); export const metadata: Metadata = { title: "Create Next App", description: "Generated by create next app", icons: { icon: "/fav-icon.svg", }, }; function ContactInfo({ icon, contact, href, ariaLabel, contactIconSrc, }: { icon: string; contact: string; href?: string; ariaLabel: string; contactIconSrc?: string; }) { return (
{href ? ( {contact} ) : (

{!!contactIconSrc && ( flag )} {contact}

)}
); } export default async function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { const contactInfo = [ { icon: "/Message.svg", contact: "info@opplens.com", href: "mailto:info@opplens.com", ariaLabel: "Email us at info@opplens.com", }, { icon: "/Phone.svg", contact: "(+46) - 761581526", href: "tel:+46761581526", ariaLabel: "Call us at +46 761581526", }, { icon: "/Location.svg", contact: "Stockholm, Sweden", ariaLabel: "Our location in Stockholm, Sweden", contactIconSrc: "/sweden.svg", }, ]; return (
Opp lens logo
{children}
); }