(children: ReactNode)
| 24 | } |
| 25 | |
| 26 | function anchorId(children: ReactNode) { |
| 27 | return childrenToString(children) |
| 28 | .replace(/\s/g, '-') |
| 29 | .replace(/[^a-zA-Z0-9-_]/g, '') |
| 30 | .toLowerCase(); |
| 31 | } |
| 32 | |
| 33 | function AnchorLink({anchorId, isHovered, level, headingText}) { |
| 34 | let {isFocusVisible, focusProps} = useFocusRing({within: true}); |
no test coverage detected