import { useMemo } from "react";
import { isArr } from "@pisell/utils";
var useGapSize = function useGapSize(gap) {
  return useMemo(function () {
    if (isArr(gap)) {
      return {
        horizontal: gap[0],
        vertical: gap[1]
      };
    } else {
      return {
        horizontal: gap,
        vertical: gap
      };
    }
  }, [gap]);
};
export default useGapSize;