local AS, L, S, R = unpack(AddOnSkins)

if not AS:CheckAddOn('!Swatter') then return end

function AS:Swatter()
	if SwatterErrorFrame then
		S:HandleFrame(SwatterErrorFrame)
		SwatterErrorEditBox:SetFrameLevel(2)
		S:HandleButton(Swatter.Error.Done)
		S:HandleButton(Swatter.Error.Next)
		S:HandleButton(Swatter.Error.Prev)
		S:HandleButton(Swatter.Drag)
		S:HandleScrollBar(SwatterErrorInputScrollScrollBar)
	end
end

AS:RegisterSkin('Swatter', AS.Swatter, '[!BugGrabber]', '[!ImprovedErrorFrame]')
