{"ast":null,"code":"import { GET_POSTS } from \"../actions/post.actions\";\nconst initialState = {};\nexport default function postReducer() {\n  let state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n  let action = arguments.length > 1 ? arguments[1] : undefined;\n  switch (action.type) {\n    case GET_POSTS:\n      return action.payload;\n    default:\n      return state;\n  }\n}","map":{"version":3,"names":["GET_POSTS","initialState","postReducer","state","action","type","payload"],"sources":["C:/Users/user/Desktop/05mediaSocial/client/src/reducers/post.reducer.js"],"sourcesContent":["import { GET_POSTS } from \"../actions/post.actions\";\r\n\r\nconst initialState = {};\r\n\r\nexport default function postReducer(state = initialState, action) {\r\n  switch (action.type) {\r\n    case GET_POSTS:\r\n      return action.payload;\r\n      default:\r\n      return state\r\n  }\r\n} "],"mappings":"AAAA,SAASA,SAAS,QAAQ,yBAAyB;AAEnD,MAAMC,YAAY,GAAG,CAAC,CAAC;AAEvB,eAAe,SAASC,WAAW,GAA+B;EAAA,IAA9BC,KAAK,uEAAGF,YAAY;EAAA,IAAEG,MAAM;EAC9D,QAAQA,MAAM,CAACC,IAAI;IACjB,KAAKL,SAAS;MACZ,OAAOI,MAAM,CAACE,OAAO;IACrB;MACA,OAAOH,KAAK;EAAA;AAElB"},"metadata":{},"sourceType":"module","externalDependencies":[]}