import { isUndefined } from "lodash-es";
import { useDataBoundingBox } from "./use-data-bounding-box.js";
const useInitialViewState = (initialViewState) => {
  const dataBBox = useDataBoundingBox();
  return isUndefined(initialViewState) ? dataBBox : initialViewState;
};
export {
  useInitialViewState
};
//# sourceMappingURL=use-initial-view-state.js.map
