From a3fa97efa14b571181d947a575881866274fc8ef Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Fri, 16 Jan 2026 13:33:55 +0100 Subject: [PATCH] Refactor layout structure: Replace Header and Footer with LayoutContent component in RootLayout for improved organization. --- app/layout-content.tsx | 27 + app/layout.tsx | 11 +- package-lock.json | 7112 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 7142 insertions(+), 8 deletions(-) create mode 100644 app/layout-content.tsx create mode 100644 package-lock.json diff --git a/app/layout-content.tsx b/app/layout-content.tsx new file mode 100644 index 0000000..1ef5b61 --- /dev/null +++ b/app/layout-content.tsx @@ -0,0 +1,27 @@ +'use client' + +import { Header, Footer } from '@ciphera-net/ui' +import { useAuth } from '@/lib/auth/context' +import Link from 'next/link' + +export default function LayoutContent({ children }: { children: React.ReactNode }) { + const auth = useAuth() + + return ( + <> +
+
+ {children} +
+