import { getCurrentRoute } from '../utilities/helperMethods';

const init = getCurrentRoute();

const page = (state = init, {type, payload}) => {
	switch (type) {
		case "NAVIGATE":
			return payload.page;
		default:
			return state;
	}
	return state ;
}

export default page;