import { createSlice } from '@reduxjs/toolkit';
const initialState = {
    community: {
        following: [],
        followers: [],
        friends: [],
    },
};
const slice = createSlice({
    name: 'currentAccount',
    initialState,
    reducers: {
        setCommunity: (state, { payload }) => {
            state.community = payload;
        },
    },
});
export const selectFollowings = (state) => state.currentAccount.community.following;
export const { setCommunity } = slice.actions;
export default slice.reducer;
//# sourceMappingURL=currentAccount.js.map