(options, index)
| 37 | } |
| 38 | |
| 39 | const getAnchorPosition = (options, index) => { |
| 40 | const spacing = clientHeight / (getAnchorOptions(options).length + 1) |
| 41 | return offsetTop + spacing * (index + 1) |
| 42 | } |
| 43 | |
| 44 | useEffect(() => { |
| 45 | if (ref.current && ref.current?.offsetTop && ref.current?.clientHeight) { |
no test coverage detected