'use strict';

var o = require('react');

"use strict";
const toDependencyArray = (point) => [
  typeof point === "object" ? point.x : null,
  typeof point === "object" ? point.y : null,
  typeof point !== "object" ? point : null
];
const usePointCompareEffect = (callback, point) => o.useEffect(callback, toDependencyArray(point));
const usePointCompareMemo = (memo, point) => o.useMemo(memo, toDependencyArray(point));

exports.usePointCompareEffect = usePointCompareEffect;
exports.usePointCompareMemo = usePointCompareMemo;
//# sourceMappingURL=usePointCompare.js.map
