mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 12:31:54 +00:00
Move layout to lighthouse config page
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user