local MER, F, E, L, V, P, G = unpack(select(2, ...))
local module = MER.Modules.Skins
local S = E.Skins

local _G = _G
local hooksecurefunc = hooksecurefunc

function module:BNet()
	if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.misc ~= true then return end

	local BNToastFrame = _G.BNToastFrame
	BNToastFrame:Styling()
	MER:CreateShadow(BNToastFrame)

	-- /run BNToastFrame:AddToast(BN_TOAST_TYPE_ONLINE, 1)
	hooksecurefunc(BNToastFrame, 'ShowToast', function(self)
		if not self.IsSkinned then
			S:HandleCloseButton(self.CloseButton)
			self.IsSkinned = true
		end
	end)
end

module:AddCallback("BNet")
