feat: split swift into standalone module

This commit is contained in:
colinislit
2025-12-27 19:56:24 +01:00
parent 0f7c8f00be
commit 812c41a042
4 changed files with 218 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
/**
* 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>
);
}

View File

@@ -0,0 +1,13 @@
'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 />;
}