Function
toolkitByRouteSlug
(
toolkits: readonly ToolkitResponse[],
slug: string,
)
Source from the content-addressed store, hash-verified
| 173 | }; |
| 174 | |
| 175 | const 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 | |
| 183 | const toolkitCardStyle = { minHeight: "9rem" }; |
| 184 | const toolkitShelfStyle = { minHeight: "28.5rem" }; |
Tested by
no test coverage detected