import{configureStore as m}from"@reduxjs/toolkit";import{createSlice as n}from"@reduxjs/toolkit";var r={selectedWallet:void 0,selectedSolanaWallet:void 0,accessKey:null,details:{}},a=n({name:"user",initialState:r,reducers:{updateSelectedWallet(e,{payload:{wallet:t}}){e.selectedWallet=t},updateSolanaSelectedWallet(e,{payload:{wallet:t}}){e.selectedSolanaWallet=t},updateAccessKey(e,{payload:{accessKey:t}}){e.accessKey=t},updateUserDetails(e,{payload:{details:t}}){e.details=t}}}),{updateSelectedWallet:x,updateSolanaSelectedWallet:w,updateAccessKey:I,updateUserDetails:W}=a.actions,l=a.reducer;import{createSlice as i}from"@reduxjs/toolkit";var s={selectedCollectionId:null,showMint:!1,collectionViewOpen:!1,selectedSpaceId:!1},c=i({name:"collection",initialState:s,reducers:{updateSelectedCollectionId(e,{payload:{id:t}}){e.selectedCollectionId=t},updateShowMint(e,{payload:{showMint:t}}){e.showMint=t},updateCollectionViewOpen(e,{payload:{collectionViewOpen:t}}){e.collectionViewOpen=t},updateSelectedSpaceId(e,{payload:{id:t}}){e.selectedSpaceId=t}}}),{updateSelectedCollectionId:K,updateShowMint:M,updateCollectionViewOpen:O,updateSelectedSpaceId:V}=c.actions,o=c.reducer;import{createSlice as u}from"@reduxjs/toolkit";var S={balance:0},d=u({name:"space",initialState:S,reducers:{updateSpaceBalance(e,t){e.balance=Number(t.payload)}}}),{updateSpaceBalance:E}=d.actions,p=d.reducer;var f=m({reducer:{user:l,collection:o,space:p},middleware:e=>e({thunk:!0}),preloadedState:{}}),N=f;export{N as default};
