import { useEffect, useMemo } from '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) => useEffect(callback, toDependencyArray(point));
const usePointCompareMemo = (memo, point) => useMemo(memo, toDependencyArray(point));

export { usePointCompareEffect, usePointCompareMemo };
//# sourceMappingURL=usePointCompare.mjs.map
