local I=require(script.Parent.Parent:WaitForChild("\083\101\108\101\099\116\111\114\115"))local F=require(script.Parent.Parent:WaitForChild("\065\099\116\105\111\110\115"))return function(e,k)return function(c)if I.isOwned(c:getState(),e,k)then c:dispatch(F.ASSET_EQUIP(e,k))end end end
local Selectors = require(script.Parent.Parent:WaitForChild("Selectors"))
local Actions = require(script.Parent.Parent:WaitForChild("Actions"))

return function(player,assetId)
    return function(store)
        if Selectors.isOwned(store:getState(),player,assetId) then
            store:dispatch(Actions.ASSET_EQUIP(player,assetId))
        end
    end
end