const initialState = {
  location: "NOT_REQUESTED",
};

export default (state = initialState, action) => {
  console.log("app permission", action);
  switch (action.type) {
    case "LOCATION_GRANTED":
      return { location: "GRANTED" };
    case "LOCATION_DENIED":
      return { location: "DENIED" };
    case "LOCATION_BLOCKED":
      return { location: "BLOCKED" };
    default:
      return state;
  }
};
