"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useFormFooter = void 0;
const react_1 = require("react");
const useFormFooter = ({ secondaryActions }) => {
    const [isActive, setIsActive] = (0, react_1.useState)(false);
    const handleToggle = () => {
        setIsActive((prevState) => !prevState);
    };
    const isShowMoreButton = secondaryActions && secondaryActions.length > 1;
    return { isActive, handleToggle, isShowMoreButton };
};
exports.useFormFooter = useFormFooter;
