A full featured blog in RiotJS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
313 B

import I from 'immutable';
function actives(m) {
return I.Map(m);
}
function setActive(m, page) {
return m.mapEntries(
(kv) => {
if (kv[0] == page) {
return [kv[0], true];
}
return [kv[0], false];
});
}
export default {
"actives" : actives,
"setActive" : setActive
};