local z=script.Parent local y=z.Parent.Packages local C=require(y.Roact)local v=C.createElement local x=require(script.Parent.Message)local W=C.PureComponent:extend(script.Name)function W.render(z)local y=z.props local C=y.Image and"\114\098\120\116\104\117\109\098\058\047\047\116\121\112\101\061\065\118\097\116\097\114\072\101\097\100\083\104\111\116\038\105\100\061\054\052\057\055\056\055\049\049\055\038\119\061\052\056\038\104\061\052\056"or nil if C and not y.ThumbnailAsImage then C="\114\098\120\097\115\115\101\116\105\100\058\047\047\056\051\048\051\051\051\050\051\055\057"end return v(x,{TitleText=y.TitleText or"\077\101\115\115\097\103\101 \102\114\111\109 \060\098\062\111\109\119\111\116\060\047\098\062",BodyText="\068\111\110\116 \119\101 \097\108\108 \108\111\118\101 \116\101\120\116 \119\114\097\112\112\105\110\103 \098\101\099\097\117\115\101 \105\116 \105\115 \115\111 \103\114\101\097\116 \097\110\100 \116\104\105\115 \116\101\120\116 \115\104\111\117\108\100 \098\101 \119\114\097\112\112\101\100\044 \105\102 \105\116 \105\115 \110\111\116 \119\114\097\112\112\101\100 \116\104\101\110 \115\111\109\101\116\104\105\110\103 \105\115 \119\114\111\110\103 \111\114 \105\116 \105\115 \106\117\115\116 \098\097\100 \100\101\115\105\103\110\046 \087\101 \097\108\108 \107\110\111\119 \097\098\111\117\116 \116\104\101 \116\104\105\110\103\115 \116\104\097\116 \119\101 \104\097\118\101 \116\111 \100\111 \098\117\116 \116\104\105\115 \105\115 \106\117\115\116 \115\111\109\101 \110\111\110\115\101\110\115\101 \116\101\120\116 \105\110 \111\114\100\101\114 \116\111 \116\101\115\116 \115\111\109\101 \115\116\117\102\102\046 \066\108\097\104 \098\108\097\104 \098\108\097\104 \105\115 \097\108\108 \105 \104\101\097\114 \114\105\103\104\116 \110\111\119 \098\101\099\097\117\115\101 \121\101\115 \097\110\100 \116\104\101 \121\101\097\097\111\117 \097\111\117 \097\102\111\117\119\097 \101\108\102 \111\117\103\046",Image=C;Condensed=y.Condensed})end return{controls={ThumbnailAsImage=true,Image=true};stories={Message=function(z)return v(W,z.controls)end;SmallMessage=function(z)local y=table.clone(z.controls)y.Condensed=true return v(W,y)end}}
local Components = script.Parent
local Packages = Components.Parent.Packages

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

local Message = require(script.Parent.Message)
local MessageStory = Roact.PureComponent:extend(script.Name)

function MessageStory:render()
	local props = self.props
	local Image = props.Image and 'rbxthumb://type=AvatarHeadShot&id=649787117&w=48&h=48' or nil

	if Image and not props.ThumbnailAsImage then
		Image = 'rbxassetid://8303332379'
	end

	return new(Message, {
		TitleText = props.TitleText or 'Message from <b>omwot</b>',
		BodyText = 'Dont we all love text wrapping because it is so great and this text should be wrapped, if it is not wrapped then something is wrong or it is just bad design. We all know about the things that we have to do but this is just some nonsense text in order to test some stuff. Blah blah blah is all i hear right now because yes and the yeaaou aou afouwa elf oug.',
		Image = Image,
		Condensed = props.Condensed,
	})
end

return {
	controls = {
		ThumbnailAsImage = true,
		Image = true,
	},
	stories = {
		Message = function(props)
			return new(MessageStory, props.controls)
		end,
		SmallMessage = function(props)
			local controlprops = table.clone(props.controls)
			controlprops.Condensed = true
			return new(MessageStory, controlprops)
		end
	}
}
