local C=script.Parent.Parent.Parent.Parent local U=C.Parent local Z=require(U.Roact)local b=Z.createElement local p=script.Parent local w=require(p.CheckboxGroup)local m=(require(p["\067\104\101\099\107\098\111\120\046\115\116\111\114\121"])).storyElement local O=Z.PureComponent:extend(script.Name)function O.GetCheckboxes(C)local U={}for C=1,C.props.Amount,1 do U[C]={Label=tostring(C)}end return U end function O.render(C)return b(w,{HeaderText=C.props.HeaderText;Checkboxes=C:GetCheckboxes()})end return{controls={HeaderText="\072\101\097\100\101\114 \116\101\120\116";Amount=10,Disabled=false},stories={CheckboxGroup=function(C)return b(O,C.controls)end}}
local Winro = script.Parent.Parent.Parent.Parent
local Packages = Winro.Parent
local Roact = require(Packages.Roact)
local new = Roact.createElement

local CheckboxRoot = script.Parent
local CheckboxGroup = require(CheckboxRoot.CheckboxGroup)
local CheckboxStoryElement = require(CheckboxRoot["Checkbox.story"]).storyElement

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

function CheckboxGroupStory:GetCheckboxes()

	local Checkboxes = {}

	for Index = 1, self.props.Amount do
		Checkboxes[Index] = {
			Label = tostring(Index),
		}
	end

	return Checkboxes
end

function CheckboxGroupStory:render()
	return new(CheckboxGroup, {
		HeaderText = self.props.HeaderText,
		Checkboxes = self:GetCheckboxes()
	})
end

return {
	controls = {
		HeaderText = 'Header text',
		Amount = 10,
		Disabled = false,
	},
	stories = {
		CheckboxGroup = function (props)
			return new(CheckboxGroupStory, props.controls)
		end
	}
}
