"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = require("react");
const useEventListener_1 = __importDefault(require("./useEventListener"));
const useResize = (resizeFunc) => {
    (0, useEventListener_1.default)('resize', resizeFunc);
    (0, react_1.useEffect)(() => {
        resizeFunc();
    }, [resizeFunc]);
};
exports.default = useResize;
