JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "use-stable-scrollbar.ts"

Full Path: /home/markqprx/iniasli.pro/client/utils/hooks/use-stable-scrollbar.ts
File size: 404 bytes
MIME-type: text/plain
Charset: utf-8

import {useEffect} from 'react';

export function useStableScrollbar(disable: boolean = false) {
  useEffect(() => {
    if (disable) {
      document.documentElement.classList.remove('stable-scrollbar');
    } else {
      document.documentElement.classList.add('stable-scrollbar');
    }
    return () => {
      document.documentElement.classList.remove('stable-scrollbar');
    };
  }, [disable]);
}