local A=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local p=A:WaitForChild("\077\111\100\117\108\101\115")local f=require(p.src.utils.Logger)local R=((game:GetService("\083\116\097\114\116\101\114\080\108\097\121\101\114")):WaitForChild("\083\116\097\114\116\101\114\080\108\097\121\101\114\083\099\114\105\112\116\115")).clientSrc local u=require(p.Roact)local K=require(R.Components.common.TextListWithHeader)local d=u.createElement local function i(A)local p=A.item local f=A.noTextListWithHeader local R=Vector2.new(p.Size.X,p.Size.Y)return d("\080\097\114\116",{CFrame=p.cFrame,Size=Vector3.new(R.X,R.Y,.5),Transparency=1;Anchored=true;CanCollide=false},{SurfaceGui=d("\083\117\114\102\097\099\101\071\117\105",{Face=Enum.NormalId.Front;CanvasSize=15*R},f and A[u.Children]or d(K,A))})end return i
local ReplicatedStorage = game:GetService('ReplicatedStorage')
local Modules = ReplicatedStorage:WaitForChild('Modules')
local logger = require(Modules.src.utils.Logger)
local clientSrc = game:GetService('StarterPlayer'):WaitForChild('StarterPlayerScripts').clientSrc

local Roact = require(Modules.Roact)

local TextListWithHeader = require(clientSrc.Components.common.TextListWithHeader)

local createElement = Roact.createElement

local function SurfaceBillboard(props)
	local item = props.item
	local noTextListWithHeader = props.noTextListWithHeader
	local size = Vector2.new(item.Size.X, item.Size.Y)

	return createElement(
		'Part',
		{
			CFrame = item.cFrame,
			Size = Vector3.new(size.X, size.Y, 0.5),
			Transparency = 1,
			Anchored = true,
			CanCollide = false,
		},
		{ SurfaceGui = createElement(
			'SurfaceGui',
			{
				Face = Enum.NormalId.Front,
				CanvasSize = 15 * size,
			},
			noTextListWithHeader and props[Roact.Children] or createElement(
				TextListWithHeader,
				props
			)
		) }
	)
end

return SurfaceBillboard