import state from "../store";
export default function getLocationById(id) {
  return ((state === null || state === void 0 ? void 0 : state.locations) || []).find((location) => (location === null || location === void 0 ? void 0 : location.id) === id);
}
