local Z=script:FindFirstAncestor("\077\097\122\101\071\101\110\101\114\097\116\111\114\080\108\117\103\105\110")local I=require(Z.Roact)local S=Z.Plugin local C=require(S.Components.FitList)local f=require(S.Components.FitText)local L=I.createElement local function n(Z)local I=Z.Text local S=Z.theme local n=Z.Input local y=Z.LayoutOrder local i=200 return L(C,{fitAxes="\088",containerProps={LayoutOrder=y,ZIndex=1;BackgroundTransparency=1;Size=UDim2.new(0,0,0,45)};layoutProps={FillDirection=Enum.FillDirection.Horizontal;Padding=UDim.new(0,10)}},{Label=L(f,{Kind="\084\101\120\116\076\097\098\101\108",LayoutOrder=1;BackgroundTransparency=1,TextXAlignment=Enum.TextXAlignment.Left,Font=S.TitleFont;TextSize=20,Text=I,TextColor3=S.Text1,MinSize=Vector2.new(i,0)}),Input=n})end return n
local Root = script:FindFirstAncestor('MazeGeneratorPlugin')
local Roact = require(Root.Roact)
local Plugin = Root.Plugin
local FitList = require(Plugin.Components.FitList)
local FitText = require(Plugin.Components.FitText)

local e = Roact.createElement

local function SettingsFormItem(props)
	local Text = props.Text
	local theme = props.theme
	local Input = props.Input
	local LayoutOrder = props.LayoutOrder

	local textFieldWidth = 200

	return e(
		FitList,
		{
			fitAxes = 'X',
			containerProps = {
				LayoutOrder = LayoutOrder,
				ZIndex = 1,
				BackgroundTransparency = 1,
				Size = UDim2.new(0, 0, 0, 45),
			},
			layoutProps = {
				FillDirection = Enum.FillDirection.Horizontal,
				Padding = UDim.new(0, 10),
			},
		},
		{
			Label = e(FitText, {
				Kind = 'TextLabel',
				LayoutOrder = 1,
				BackgroundTransparency = 1,
				TextXAlignment = Enum.TextXAlignment.Left,
				Font = theme.TitleFont,
				TextSize = 20,
				Text = Text,
				TextColor3 = theme.Text1,
				MinSize = Vector2.new(textFieldWidth, 0),
			}),
			Input = Input,
		}
	)
end

return SettingsFormItem