message: use React.RefObject in useDetails.tsx
diff: import {useCallback, useEffect, useState, useRef} from 'react'
  type useDetailsParameters = {
  - ref?: {current: HTMLElement}
  + ref?: React.RefObject<HTMLElement>
  closeOnOutsideClick?: boolean
  defaultOpen?: boolean
  onClickOutside?: Function
  