local C=script.Parent.Parent.Parent local U=C.Parent local Z=(require(C.Theme)).WithTheme local b=require(U.Roact)local p=b.createElement local w=b.PureComponent:extend(script.Name)function w.render(C)local U=C.props return Z(function(C)local Z=C["\099\111\108\111\114\115\047\083\116\114\111\107\101\095\067\111\108\111\114\047\068\105\118\105\100\101\114\095\083\116\114\111\107\101\047\068\101\102\097\117\108\116"]return p("\070\114\097\109\101",{BackgroundTransparency=1;LayoutOrder=U.LayoutOrder;Position=U.Position,Size=UDim2.new(U.Size.X.Scale,U.Size.X.Offset,U.Size.Y.Scale,U.Size.Y.Offset==0 and 4 or U.Size.Y.Offset)},{Divider=p("\070\114\097\109\101",{AnchorPoint=Vector2.new(0,1),BorderSizePixel=0,BackgroundColor3=Z.Color;BackgroundTransparency=Z.Transparency,Position=UDim2.new(0,1,.5,0),Size=UDim2.new(1,-2,0,1)})})end)end return w
-- Simple divider, with theme

local Winro = script.Parent.Parent.Parent
local Packages = Winro.Parent

local WithTheme = require(Winro.Theme).WithTheme
local Roact = require(Packages.Roact)
local new = Roact.createElement

local ListDivider = Roact.PureComponent:extend(script.Name)

function ListDivider:render()
	local props = self.props

	return WithTheme(function(Theme)
		local DividerStyle = Theme["colors/Stroke_Color/Divider_Stroke/Default"]
		return new('Frame', {
			BackgroundTransparency = 1,
			LayoutOrder = props.LayoutOrder,
			Position = props.Position,
			Size = UDim2.new(
				props.Size.X.Scale,
				props.Size.X.Offset,
				props.Size.Y.Scale,
				props.Size.Y.Offset == 0 and 4 or props.Size.Y.Offset
			),
		}, {
			Divider = new('Frame', {
				AnchorPoint = Vector2.new(0, 1),
				BorderSizePixel = 0,
				BackgroundColor3 = DividerStyle.Color,
				BackgroundTransparency = DividerStyle.Transparency,
				Position = UDim2.new(0, 1, 0.5, 0),
				Size = UDim2.new(1, -2, 0, 1)
			})
		})
	end)
end

return ListDivider
