import { ActionTypes, isKnownAction } from "../actions";
function getInitialState() {
  return { pointer: null };
}
function getPointer(state) {
  return state.pointer;
}
function reducer(state = getInitialState(), action) {
  if (!isKnownAction(action))
    return state;
  switch (action.type) {
    case ActionTypes.BUILDER_POINTER_MOVE:
      return { ...state, pointer: action.payload.pointer };
    default:
      return state;
  }
}
export {
  getPointer,
  reducer
};
//# sourceMappingURL=pointer.js.map