mirror of
https://iceshrimp.dev/blueb/Chuckya-fe-standalone.git
synced 2026-01-13 22:43:15 -08:00
13 lines
344 B
JavaScript
13 lines
344 B
JavaScript
|
|
import { RULES_FETCH_SUCCESS } from 'mastodon/actions/rules';
|
||
|
|
import { List as ImmutableList, fromJS } from 'immutable';
|
||
|
|
|
||
|
|
const initialState = ImmutableList();
|
||
|
|
|
||
|
|
export default function rules(state = initialState, action) {
|
||
|
|
switch (action.type) {
|
||
|
|
case RULES_FETCH_SUCCESS:
|
||
|
|
return fromJS(action.rules);
|
||
|
|
default:
|
||
|
|
return state;
|
||
|
|
}
|
||
|
|
}
|