import{Provider as x}from"react-redux";import{configureStore as f}from"@reduxjs/toolkit";import{createSlice as i}from"@reduxjs/toolkit";var n={selectedWallet:void 0,selectedSolanaWallet:void 0,accessKey:null,details:{}},a=i({name:"user",initialState:n,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:C,updateSolanaSelectedWallet:h,updateAccessKey:K,updateUserDetails:M}=a.actions,l=a.reducer;import{createSlice as s}from"@reduxjs/toolkit";var u={selectedCollectionId:null,showMint:!1,collectionViewOpen:!1,selectedSpaceId:!1},o=s({name:"collection",initialState:u,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:V,updateShowMint:b,updateCollectionViewOpen:v,updateSelectedSpaceId:D}=o.actions,c=o.reducer;import{createSlice as S}from"@reduxjs/toolkit";var m={balance:0},d=S({name:"space",initialState:m,reducers:{updateSpaceBalance(e,t){e.balance=Number(t.payload)}}}),{updateSpaceBalance:B}=d.actions,r=d.reducer;var y=f({reducer:{user:l,collection:c,space:r},middleware:e=>e({thunk:!0}),preloadedState:{}}),p=y;import{jsx as I}from"react/jsx-runtime";var w=({children:e})=>I(x,{store:p,children:e}),q=w;export{q as default};
