MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toolkitByRouteSlug

Function toolkitByRouteSlug

packages/plugins/toolkits/src/page.tsx:175–181  ·  view source on GitHub ↗
(
  toolkits: readonly ToolkitResponse[],
  slug: string,
)

Source from the content-addressed store, hash-verified

173};
174
175const toolkitByRouteSlug = (
176 toolkits: readonly ToolkitResponse[],
177 slug: string,
178): ToolkitResponse | null => {
179 const matches = toolkits.filter((toolkit) => toolkit.slug === slug);
180 return matches.find((toolkit) => toolkit.owner === "org") ?? matches[0] ?? null;
181};
182
183const toolkitCardStyle = { minHeight: "9rem" };
184const toolkitShelfStyle = { minHeight: "28.5rem" };

Callers 1

ToolkitsPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected