text: const throttle = (callback, delay) => {
    let timerId;
    return event => {
      if (timerId) return;
      timerId = setTimeout(
        () => {
          callback(event);
          timerId = null;
        },
        delay,
        event
      );
    };
  };
  
  export { throttle };
  