local T=script.Parent.Parent.Parent local O=require(T.Constants)local a=require(T.Packages.Roact)local D=require(T.Packages.StudioComponents)local w=D.Label local v=D.Checkbox local H=O.ListEntryHeight local t=O.CheckboxHeight local function A(T)return a.createElement("\070\114\097\109\101",{LayoutOrder=T.Order,BackgroundTransparency=1;Size=UDim2.new(1,0,0,H)},{Label=a.createElement(w,{Size=UDim2.new(1,-24,1,0);Text=T.Group.name;TextXAlignment=Enum.TextXAlignment.Left;TextTruncate=Enum.TextTruncate.AtEnd},{Padding=a.createElement("\085\073\080\097\100\100\105\110\103",{PaddingLeft=UDim.new(0,7);PaddingRight=UDim.new(0,5)})}),CheckboxFrame=a.createElement("\070\114\097\109\101",{AnchorPoint=Vector2.new(1,.5),Position=UDim2.new(1,-(H-t),.5,0);Size=UDim2.fromOffset(t,t),BackgroundTransparency=1},{Checkbox=a.createElement(v,{Value=T.Collides;OnActivated=T.OnActivated,Disabled=T.Disabled})})})end return A
local Plugin = script.Parent.Parent.Parent
local Constants = require(Plugin.Constants)

local Roact = require(Plugin.Packages.Roact)
local StudioComponents = require(Plugin.Packages.StudioComponents)

local Label = StudioComponents.Label
local Checkbox = StudioComponents.Checkbox

local ENTRY_HEIGHT = Constants.ListEntryHeight
local CHECKBOX_HEIGHT = Constants.CheckboxHeight

local function ListActionEntry(props)
	return Roact.createElement("Frame", {
		LayoutOrder = props.Order,
		BackgroundTransparency = 1,
		Size = UDim2.new(1, 0, 0, ENTRY_HEIGHT),
	}, {
		Label = Roact.createElement(Label, {
			Size = UDim2.new(1, -24, 1, 0),
			Text = props.Group.name,
			TextXAlignment = Enum.TextXAlignment.Left,
			TextTruncate = Enum.TextTruncate.AtEnd,
		}, {
			Padding = Roact.createElement("UIPadding", {
				PaddingLeft = UDim.new(0, 7),
				PaddingRight = UDim.new(0, 5),
			}),
		}),
		CheckboxFrame = Roact.createElement("Frame", {
			AnchorPoint = Vector2.new(1, 0.5),
			Position = UDim2.new(1, -(ENTRY_HEIGHT - CHECKBOX_HEIGHT), 0.5, 0),
			Size = UDim2.fromOffset(CHECKBOX_HEIGHT, CHECKBOX_HEIGHT),
			BackgroundTransparency = 1,
		}, {
			Checkbox = Roact.createElement(Checkbox, {
				Value = props.Collides,
				OnActivated = props.OnActivated,
				Disabled = props.Disabled,
			}),
		}),
	})
end

return ListActionEntry
