(children: ReactNode)
| 12 | import {useHover} from '@react-aria/interactions'; |
| 13 | |
| 14 | function childrenToString(children: ReactNode) { |
| 15 | if (typeof children === 'string') { |
| 16 | return children; |
| 17 | } |
| 18 | |
| 19 | if (Array.isArray(children)) { |
| 20 | return children.reduce((p, c) => p + childrenToString(c), ''); |
| 21 | } |
| 22 | |
| 23 | return ''; |
| 24 | } |
| 25 | |
| 26 | function anchorId(children: ReactNode) { |
| 27 | return childrenToString(children) |