import type { ReactNode } from "react"; import "../styles/sdlc76/app-frame.css"; interface AppFrameProps { appName: string; actions?: ReactNode; rail?: ReactNode; children?: ReactNode; } export function AppFrame({ appName, actions, rail, children }: AppFrameProps) { const header =
{rail ? null : Back to Apps} {appName} {actions}
; // With a rail, the header and body share one column beside it, and the rail carries the Back. return rail ? <>{rail}
{header}{children}
: <>{header}{children}; }