// §22.10 (M3) — the deployment directory at `/`. Renders the caller-visible // projects (from /api/deployment) as cards linking into each project's // `/p//` home. App's DeploymentLanding only mounts this when 2+ projects // are visible; the N=1 case redirects straight into the single project so // OHM's "land in the corpus" UX is preserved. import { Link } from 'react-router-dom' import { useDeployment } from '../context/DeploymentProvider' import { entryNoun } from './ProjectLayout.jsx' export default function Directory() { const { name, tagline, projects } = useDeployment() return (

{name}

{tagline &&

{tagline}

}
    {projects.map(p => (
  • {p.name} {entryNoun(p.type)}s
  • ))}
) }