MCPcopy Create free account
hub / github.com/api-platform/website / DocMenu

Function DocMenu

pwa/components/docs/DocMenu.tsx:136–160  ·  view source on GitHub ↗
({
  parts,
  autoOpen,
}: {
  parts: NavPartProps[];
  autoOpen?: boolean;
})

Source from the content-addressed store, hash-verified

134}
135
136export default function DocMenu({
137 parts,
138 autoOpen,
139}: {
140 parts: NavPartProps[];
141 autoOpen?: boolean;
142}) {
143 const versionLinks = versions.map((v) => ({
144 link: v === current ? "/docs/distribution/" : `/docs/v${v}/distribution/`,
145 title: v,
146 }));
147 return (
148 <>
149 {parts.map((part, index) => (
150 <NavPart key={`${part.title} ${index}`} autoOpen={autoOpen} {...part} />
151 ))}
152 <NavPart
153 basePath=""
154 links={versionLinks}
155 title="Doc versions"
156 autoOpen={false}
157 />
158 </>
159 );
160}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected