fixed cache Refactoring from app router to page router Refactoring from app router to page router Add authentication with JWT base ui done protect the dashboard added transitions styling type trick added cleanup Add enable-disable logic add transactional emails Improvements on delay and frontend added description on select implement auth with magic link migrate to mariadb webhook signature working Adding async processing with queues Implemented webhook reply functionality Add son execution logs update status logic Add recent activity monitoring to sons show son performance in dashboard add readme implement listmonk connector listmonk-connector-v1 Create CODE_OF_CONDUCT.md Create LICENSE
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
import { useState } from "react";
|
|
import { Button } from "@/components/ui/button";
|
|
import { Menu } from "lucide-react";
|
|
import ContextWrapper from "@/components/ContextWrapper";
|
|
import { Sidebar } from "@/components/Sidebar";
|
|
import { AuthButton } from "./AuthButton";
|
|
|
|
export default function Layout({ children }: { children: React.ReactNode }) {
|
|
const [isSidebarOpen, setIsSidebarOpen] = useState(false);
|
|
|
|
return (
|
|
<div className="flex">
|
|
<Sidebar isOpen={isSidebarOpen} />
|
|
<div className="flex-1 flex flex-col">
|
|
<header className="bg-white shadow p-4 flex justify-between items-center">
|
|
<Button
|
|
variant="ghost"
|
|
className="md:hidden"
|
|
onClick={() => setIsSidebarOpen(!isSidebarOpen)}
|
|
>
|
|
<Menu className="h-6 w-6" />
|
|
</Button>
|
|
<h1 className="text-xl font-bold">Ghost-Listmonk Connector</h1>
|
|
<AuthButton />
|
|
</header>
|
|
<main className="flex-1 bg-gray-100 p-4 overflow-y-auto">
|
|
<ContextWrapper>{children}</ContextWrapper>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|