Move layout to lighthouse config page

This commit is contained in:
Chandrapal Badshah
2025-06-04 13:18:42 +05:30
parent 9e62a5398f
commit 67fe87cfd4
2 changed files with 7 additions and 20 deletions
@@ -1,19 +0,0 @@
import "@/styles/globals.css";
import React from "react";
import { ContentLayout } from "@/components/ui";
interface ChatbotConfigLayoutProps {
children: React.ReactNode;
}
export default function ChatbotConfigLayout({
children,
}: ChatbotConfigLayoutProps) {
return (
<ContentLayout title="Configure Lighthouse" icon="lucide:settings">
{children}
</ContentLayout>
);
}
+7 -1
View File
@@ -1,5 +1,6 @@
import { getLighthouseConfig } from "@/actions/lighthouse";
import { ChatbotConfig } from "@/components/lighthouse";
import { ContentLayout } from "@/components/ui";
export const dynamic = "force-dynamic";
@@ -21,6 +22,11 @@ export default async function ChatbotConfigPage() {
const configExists = !!response;
return (
<ChatbotConfig initialValues={initialValues} configExists={configExists} />
<ContentLayout title="Configure Lighthouse" icon="lucide:settings">
<ChatbotConfig
initialValues={initialValues}
configExists={configExists}
/>
</ContentLayout>
);
}