require("../../../../../_virtual/_rolldown/runtime.js");
let react = require("react");
let _pisell_utils = require("@pisell/utils");
//#region src/components/table/Gallery/components/VirtualGrid/useGapSize.ts
const useGapSize = (gap) => {
	return (0, react.useMemo)(() => {
		if ((0, _pisell_utils.isArr)(gap)) return {
			horizontal: gap[0],
			vertical: gap[1]
		};
		else return {
			horizontal: gap,
			vertical: gap
		};
	}, [gap]);
};
//#endregion
exports.default = useGapSize;
