mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
Some checks are pending
Build and Push Docker Images / tag_release (push) Waiting to run
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Blocked by required conditions
23 lines
727 B
TypeScript
23 lines
727 B
TypeScript
"use client";
|
|
|
|
import { usePathname } from "next/navigation";
|
|
import { FooterNew } from "@/components/homepage/footer-new";
|
|
import { Navbar } from "@/components/homepage/navbar";
|
|
|
|
export default function HomePageLayout({ children }: { children: React.ReactNode }) {
|
|
const pathname = usePathname();
|
|
const isAuthPage = pathname === "/login" || pathname === "/register";
|
|
const isFreeModelChat = /^\/free\/[^/]+$/.test(pathname);
|
|
|
|
if (isFreeModelChat) {
|
|
return <>{children}</>;
|
|
}
|
|
|
|
return (
|
|
<main className="min-h-screen bg-linear-to-b from-gray-50 to-gray-100 text-gray-900 dark:from-black dark:to-gray-900 dark:text-white overflow-x-hidden">
|
|
<Navbar />
|
|
{children}
|
|
{!isAuthPage && <FooterNew />}
|
|
</main>
|
|
);
|
|
}
|