"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useLogic = void 0;
const react_hook_form_1 = require("react-hook-form");
const utils_1 = require("../../../utils");
const useLogic = ({ modalForm, }) => {
    const formValues = (0, react_hook_form_1.useWatch)({
        control: modalForm.control,
    });
    const isResetButtonDisabled = (0, utils_1.getFilledCount)(formValues) === 0;
    return {
        isResetButtonDisabled,
    };
};
exports.useLogic = useLogic;
