local C=script.Parent.Parent.Parent local U=C.Parent local Z=require(U.Sift)local b=require(U.Roact)local p=b.createElement local w=require(script.Parent.Expander)local m=b.PureComponent:extend(script.Name)function m.render(C)local U=C.props local m=C.state return p(w,Z.Dictionary.join({Expanded=m.Expanded;Heading=U.Heading and"\080\111\119\101\114 \098\117\116\116\111\110 \102\117\110\099\116\105\111\110\097\108\105\116\121"or nil;Caption=U.Caption and"\065\100\106\117\115\116 \119\104\097\116 \121\111\117\114 \112\111\119\101\114 \098\117\116\116\111\110\115 \099\111\110\116\114\111\108"or nil,Icon=U.Icon and"\105\109\097\103\101\115\047\114\111\098\108\111\120\047\105\099\111\110\115\047\108\111\103\111\047\115\116\117\100\105\111\108\111\103\111\047\049\120",[b.Event.Activated]=function(...)print(...)C:setState({Expanded=not m.Expanded})end},U.Props))end return{controls={Icon=true;Heading=true,Caption=true},stories={Expander=function(C)return p(m,C.controls)end}}
local Winro = script.Parent.Parent.Parent
local Packages = Winro.Parent

local Sift = require(Packages.Sift)
local Roact = require(Packages.Roact)
local new = Roact.createElement

local Expander = require(script.Parent.Expander)

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

function ExpanderStory:render()
	local props = self.props
	local state = self.state

	return new(Expander, Sift.Dictionary.join({
		Expanded = state.Expanded,
		Heading = props.Heading and 'Power button functionality' or nil,
		Caption = props.Caption and 'Adjust what your power buttons control' or nil,
		Icon = props.Icon and 'images/roblox/icons/logo/studiologo/1x',

		[Roact.Event.Activated] = function(...)
			print(...)

			self:setState({
				Expanded = not state.Expanded,
			})
		end,
	}, props.Props))
end

return {
	controls = {
		Icon = true,
		Heading = true,
		Caption = true,
	},
	stories = {
		Expander = function(props)
			
			return new(ExpanderStory, props.controls)
		end
	}
}
