mirror of
https://github.com/wassname/talk.git
synced 2026-08-09 12:30:42 +08:00
17 lines
350 B
JavaScript
17 lines
350 B
JavaScript
import {Map} from 'immutable';
|
|
import * as actions from '../constants/embedStream';
|
|
|
|
const initialState = Map({
|
|
activeTab: 0
|
|
});
|
|
|
|
export default function embedStream (state = initialState, action) {
|
|
switch (action.type) {
|
|
case actions.CHANGE_TAB :
|
|
return state
|
|
.set('activeTab', action.activeTab);
|
|
default :
|
|
return state;
|
|
}
|
|
}
|