( ref: RefObject<DOMRefValue<T> | null> )
| 62 | } |
| 63 | |
| 64 | export function unwrapDOMRef<T extends HTMLElement>( |
| 65 | ref: RefObject<DOMRefValue<T> | null> |
| 66 | ): RefObject<T | null> { |
| 67 | return { |
| 68 | get current() { |
| 69 | return ref.current && ref.current.UNSAFE_getDOMNode(); |
| 70 | } |
| 71 | }; |
| 72 | } |
| 73 | |
| 74 | export function useUnwrapDOMRef<T extends HTMLElement>( |
| 75 | ref: RefObject<DOMRefValue<T> | null> |
no outgoing calls
no test coverage detected