Swift - Contextual UI EPD: "Van 12 klikken naar 1 zin" Documentatie: - PRD, FO, TO, UX specificaties - Bouwplan met 6 epics, 27 stories (68 SP) - Analyse en onderzoeksdocumenten E0 Setup & Foundation: - E0.S1: Zustand v5.0.9 geïnstalleerd - E0.S2: Swift store met context, blocks, input state - E0.S3: /epd/swift route met eigen layout (dark theme) - E0.S4: Folder structuur components/swift/, lib/swift/ Components: - CommandCenter (container) - ContextBar (shift, patient) - CommandInput (text + voice button) - RecentStrip (laatste 5 acties) - BlockContainer (wrapper voor blocks) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
590 B
TypeScript
29 lines
590 B
TypeScript
/**
|
|
* 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-900 text-white flex flex-col">
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|