--[[
	Returns a boolean about whether the `assetType` is actually an Accessory type.

	This function is called right before a split in functionality is required
	between different types of assets, such as equipping.

	 See related function `isClassicClothing`.
]]


local MerchBooth = script:FindFirstAncestor("MerchBooth")
local t = require(MerchBooth.Packages.t)

function isAccessory(assetType: Enum.AssetType): boolean
	assert(t.enum(Enum.AssetType)(assetType))

	if string.find(assetType.Name, "Accessory") or assetType == Enum.AssetType.Hat then
		return true
	end

	return false
end

return isAccessory
