MCPcopy Create free account
hub / github.com/github/docs / ConditionalLinkWrapper

Function ConditionalLinkWrapper

components/sidebar/RestCollapsibleSection.tsx:106–107  ·  view source on GitHub ↗
({ condition, wrapper, children }: ConditionalLinkTypes)

Source from the content-addressed store, hash-verified

104 // link to the new page. We want standalone categories to have links
105 // just like maptopics/subcategories.
106 const ConditionalLinkWrapper = ({ condition, wrapper, children }: ConditionalLinkTypes) =>
107 condition ? wrapper(children) : children
108
109 const renderRestAnchorLink = (miniTocItem: MiniTocItem) => {
110 const miniTocAnchor = miniTocItem.contents.href

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected