diff --git a/src/interface/web/app/agents/layout.tsx b/src/interface/web/app/agents/layout.tsx
index 26935325..9500b371 100644
--- a/src/interface/web/app/agents/layout.tsx
+++ b/src/interface/web/app/agents/layout.tsx
@@ -1,8 +1,5 @@
import type { Metadata } from "next";
-import { noto_sans, noto_sans_arabic } from "@/app/fonts";
import "../globals.css";
-import { ContentSecurityPolicy } from "../common/layoutHelper";
-import { ThemeProvider } from "../components/providers/themeProvider";
export const metadata: Metadata = {
title: "Khoj AI - Agents",
@@ -34,33 +31,10 @@ export const metadata: Metadata = {
},
};
-export default function RootLayout({
+export default function ChildLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
- return (
-
-
-
-
-
-
-
- {children}
-
-
-
- );
+ return <>{children}>;
}
diff --git a/src/interface/web/app/automations/layout.tsx b/src/interface/web/app/automations/layout.tsx
index 2d97af5c..5c53091f 100644
--- a/src/interface/web/app/automations/layout.tsx
+++ b/src/interface/web/app/automations/layout.tsx
@@ -2,7 +2,6 @@ import type { Metadata } from "next";
import { Toaster } from "@/components/ui/toaster";
import "../globals.css";
-import { ContentSecurityPolicy } from "../common/layoutHelper";
export const metadata: Metadata = {
title: "Khoj AI - Automations",
@@ -34,18 +33,15 @@ export const metadata: Metadata = {
},
};
-export default function RootLayout({
+export default function ChildLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
-
-
-
- {children}
-
-
-
+ <>
+ {children}
+
+ >
);
}
diff --git a/src/interface/web/app/chat/layout.tsx b/src/interface/web/app/chat/layout.tsx
index 8a97bb9b..07c55338 100644
--- a/src/interface/web/app/chat/layout.tsx
+++ b/src/interface/web/app/chat/layout.tsx
@@ -1,8 +1,5 @@
import type { Metadata } from "next";
-import { noto_sans, noto_sans_arabic } from "@/app/fonts";
import "../globals.css";
-import { ContentSecurityPolicy } from "../common/layoutHelper";
-import { ThemeProvider } from "../components/providers/themeProvider";
export const metadata: Metadata = {
title: "Khoj AI - Chat",
@@ -34,38 +31,19 @@ export const metadata: Metadata = {
},
};
-export default function RootLayout({
+export default function ChildLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
-
-
-
-
-
-
-
- {children}
-
-
-
-
+ <>
+ {children}
+
+ >
);
}
diff --git a/src/interface/web/app/search/layout.tsx b/src/interface/web/app/search/layout.tsx
index 88187302..bacf7827 100644
--- a/src/interface/web/app/search/layout.tsx
+++ b/src/interface/web/app/search/layout.tsx
@@ -1,9 +1,6 @@
import type { Metadata } from "next";
import "../globals.css";
-import { ContentSecurityPolicy } from "../common/layoutHelper";
-import { Toaster } from "@/components/ui/toaster";
-import { ThemeProvider } from "../components/providers/themeProvider";
export const metadata: Metadata = {
title: "Khoj AI - Search",
@@ -29,33 +26,10 @@ export const metadata: Metadata = {
},
};
-export default function RootLayout({
+export default function ChildLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
- return (
-
-
-
-
-
-
-
- {children}
-
-
-
- );
+ return <>{children}>;
}
diff --git a/src/interface/web/app/settings/layout.tsx b/src/interface/web/app/settings/layout.tsx
index fc0f2604..7b2a28e3 100644
--- a/src/interface/web/app/settings/layout.tsx
+++ b/src/interface/web/app/settings/layout.tsx
@@ -1,10 +1,7 @@
import type { Metadata } from "next";
-import { noto_sans, noto_sans_arabic } from "@/app/fonts";
import "../globals.css";
import { Toaster } from "@/components/ui/toaster";
-import { ContentSecurityPolicy } from "../common/layoutHelper";
import { ChatwootWidget } from "../components/chatWoot/ChatwootWidget";
-import { ThemeProvider } from "../components/providers/themeProvider";
export const metadata: Metadata = {
title: "Khoj AI - Settings",
@@ -34,35 +31,16 @@ export const metadata: Metadata = {
},
};
-export default function RootLayout({
+export default function ChildLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
-
-
-
-
-
-
-
- {children}
-
-
-
-
-
+ <>
+ {children}
+
+
+ >
);
}
diff --git a/src/interface/web/app/share/chat/layout.tsx b/src/interface/web/app/share/chat/layout.tsx
index 7373de25..d9071d3e 100644
--- a/src/interface/web/app/share/chat/layout.tsx
+++ b/src/interface/web/app/share/chat/layout.tsx
@@ -1,8 +1,5 @@
import type { Metadata } from "next";
-import { noto_sans, noto_sans_arabic } from "@/app/fonts";
import "../../globals.css";
-import { ContentSecurityPolicy } from "@/app/common/layoutHelper";
-import { ThemeProvider } from "@/app/components/providers/themeProvider";
export const metadata: Metadata = {
title: "Khoj AI - Ask Anything",
@@ -34,38 +31,19 @@ export const metadata: Metadata = {
},
};
-export default function RootLayout({
+export default function ChildLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
-
-
-
-
-
-
-
- {children}
-
-
-
-
+ <>
+ {children}
+
+ >
);
}