// src/hooks/useResizeCallbackWrapper.ts
import { useEffect } from "react";
var useResizeCallbackWrapper = (callback) => {
  useEffect(() => {
    window.addEventListener("resize", callback);
    return () => {
      window.removeEventListener("resize", callback);
    };
  }, [callback]);
};
export {
  useResizeCallbackWrapper
};
//# sourceMappingURL=useResizeCallbackWrapper.mjs.map