MCPcopy
hub / github.com/github/docs / href

Function href

components/homepage/ProductSelectionCard.tsx:20–26  ·  view source on GitHub ↗
(product: ProductT)

Source from the content-addressed store, hash-verified

18 const { isFPT } = useMainContext()
19
20 function href(product: ProductT) {
21 return `${!product.external ? `/${router.locale}` : ''}${
22 product.versions?.includes(currentVersion) && !isFPT
23 ? `/${currentVersion}/${product.id}`
24 : product.href
25 }`
26 }
27
28 const groupIcon = {
29 height: '22px',

Callers 1

ProductSelectionCardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected