feat: split swift into standalone module
This commit is contained in:
@@ -20,7 +20,8 @@ import {
|
||||
Stethoscope,
|
||||
Calendar,
|
||||
FileBarChart,
|
||||
PenLine
|
||||
PenLine,
|
||||
Zap
|
||||
} from 'lucide-react';
|
||||
|
||||
interface SubNavigationItem {
|
||||
@@ -46,6 +47,7 @@ interface EPDSidebarProps {
|
||||
|
||||
// LEVEL 1: Behandelaar Context Navigation
|
||||
const level1NavigationItems: NavigationItem[] = [
|
||||
{ id: "swift", name: "Swift", icon: Zap, href: "/epd/swift" },
|
||||
{ id: "dashboard", name: "Dashboard", icon: LayoutDashboard, href: "/epd/dashboard" },
|
||||
{ id: "clients", name: "Cliënten", icon: Users, href: "/epd/patients" },
|
||||
{
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
/**
|
||||
* Swift Layout
|
||||
*
|
||||
* Full-screen layout for Swift Command Center.
|
||||
* No sidebar - the entire screen is the Command Center.
|
||||
*/
|
||||
|
||||
import type { ReactNode } from 'react';
|
||||
import { getUser } from '@/lib/auth/server';
|
||||
import { redirect } from 'next/navigation';
|
||||
|
||||
interface SwiftLayoutProps {
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
export default async function SwiftLayout({ children }: SwiftLayoutProps) {
|
||||
const user = await getUser();
|
||||
|
||||
if (!user) {
|
||||
redirect('/login');
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-slate-50 flex flex-col">
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
'use client';
|
||||
|
||||
/**
|
||||
* Swift Command Center Page
|
||||
*
|
||||
* Main entry point for Swift - the Contextual UI EPD.
|
||||
*/
|
||||
|
||||
import { CommandCenter } from '@/components/swift';
|
||||
|
||||
export default function SwiftPage() {
|
||||
return <CommandCenter />;
|
||||
}
|
||||
Reference in New Issue
Block a user