UNPKG

873 BSource Map (JSON)View Raw
1{"version":3,"sources":["../../src/reducers/next-content.js"],"names":["nextContent","config","c","action","type","payload"],"mappings":"AAIA,eAAe,SAASA,WAAT,CAAqBC,MAArB,EAAmE;AAChF,SAAO,CAACC,CAAD,EAAaC,MAAb,KAAyC;AAC9C,YAAQA,MAAM,CAACC,IAAf;AACE,WAAK,QAAL;AACA,WAAK,mBAAL;AACA,WAAK,kBAAL;AACA,WAAK,MAAL;AACE,eAAOD,MAAM,CAACE,OAAP,CAAeL,WAAtB;;AACF;AACE,eAAOE,CAAP;AAPJ;AASD,GAVD;AAWD","sourcesContent":["// @flow\n\nimport type {Action, Config, Content} from '../types';\n\nexport default function nextContent(config: Config): (Content, Action) => Content {\n return (c: Content, action: Action): Content => {\n switch (action.type) {\n case 'answer':\n case 'extraLifeAccepted':\n case 'extraLifeRefused':\n case 'move':\n return action.payload.nextContent;\n default:\n return c;\n }\n };\n}\n"],"file":"next-content.js"}
\No newline at end of file