import {Ref} from 'react'; import PerfectScrollbar from 'perfect-scrollbar'; export default function useParentScrollbar(dom: HTMLElement): Ref