"use strict";

import { useCallback, useState } from "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`)
 */
export const useFooterActionsMeasurements = () => {
  const [footerActionsMeasurements, setFooterActionsMeasurements] = useState({
    actionBlockHeight: 0,
    safeBottomAreaHeight: 0
  });
  const handleFooterActionsMeasurements = useCallback(values => {
    setFooterActionsMeasurements(values);
  }, []);
  return {
    footerActionsMeasurements,
    handleFooterActionsMeasurements
  };
};
//# sourceMappingURL=useFooterActionsMeasurements.js.map