'use client'; import { X } from 'lucide-react'; import { cn } from '@/lib/utils'; import type { InlineAppState } from '@/hooks/use-sidebar-apps'; interface InlineAppViewProps { apps: InlineAppState[]; activeAppId: string; onClose: () => void; className?: string; } export function InlineAppView({ apps, activeAppId, onClose, className }: InlineAppViewProps) { const activeApp = apps.find((a) => a.id === activeAppId); return (
{/* Header bar */}

{activeApp?.name}

{/* Iframes - active one visible, rest hidden but alive */}
{apps.map((app) => (