import "@/styles/globals.css"; import { SearchCommand } from "@/components/dashboard/search-command"; import { Toaster } from "@/components/ui/sonner"; import { Languages } from "@/lib/languages"; import { api } from "@/utils/api"; import type { NextPage } from "next"; import { appWithTranslation } from "next-i18next"; import { ThemeProvider } from "next-themes"; import type { AppProps } from "next/app"; import { Inter } from "next/font/google"; import Head from "next/head"; import Script from "next/script"; import type { ReactElement, ReactNode } from "react"; const inter = Inter({ subsets: ["latin"] }); export type NextPageWithLayout

= NextPage & { getLayout?: (page: ReactElement) => ReactNode; theme?: string; }; type AppPropsWithLayout = AppProps & { Component: NextPageWithLayout; }; const MyApp = ({ Component, pageProps: { ...pageProps }, }: AppPropsWithLayout) => { const getLayout = Component.getLayout ?? ((page) => page); return ( <> Dokploy {process.env.NEXT_PUBLIC_UMAMI_HOST && process.env.NEXT_PUBLIC_UMAMI_WEBSITE_ID && (