"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useFooterActionsMeasurements = void 0;
var _react = require("react");
/**
 * Custom hook to handle the `FooterActions` measurements
 * @returns
 *   - `footerActionsMeasurements`
 *      Object containing the `FooterActions` measurements
 *   - `handleFooterActionsMeasurements`
 *      Function to update the footer actions measurements
 *      (to be applied to `onMeasure` prop of `FooterActions`)
 */
const useFooterActionsMeasurements = () => {
  const [footerActionsMeasurements, setFooterActionsMeasurements] = (0, _react.useState)({
    actionBlockHeight: 0,
    safeBottomAreaHeight: 0
  });
  const handleFooterActionsMeasurements = (0, _react.useCallback)(values => {
    setFooterActionsMeasurements(values);
  }, []);
  return {
    footerActionsMeasurements,
    handleFooterActionsMeasurements
  };
};
exports.useFooterActionsMeasurements = useFooterActionsMeasurements;
//# sourceMappingURL=useFooterActionsMeasurements.js.map