import { useElementSize } from "../../../../../node_modules/@vueuse/core/index.mjs";
import { ref, computed } from "vue";
function useContainer(layout) {
  const containerEl = ref();
  const { width, height } = useElementSize(containerEl);
  return {
    containerEl,
    containerSize: computed(() => {
      return layout.value === "horizontal" ? width.value : height.value;
    })
  };
}
export {
  useContainer
};
