"use strict";

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