| 1 | import * as React from 'react'; |
| 2 | |
| 3 | interface PopoverController<T> { |
| 4 | anchorRef: React.MutableRefObject<T | null>; |
| 5 | handleOpen: () => void; |
| 6 | handleClose: () => void; |
| 7 | handleToggle: () => void; |
| 8 | open: boolean; |
| 9 | } |
| 10 | |
| 11 | export function usePopover<T = HTMLElement>(): PopoverController<T> { |
| 12 | const anchorRef = React.useRef<T>(null); |
nothing calls this directly
no outgoing calls
no test coverage detected