local i=script.Parent.Parent.Packages local c=script.Parent local P=require(i.Fusion)local m=require(c.TextBox)local f=P.New local C=P.State local v=P.Children return function(i)local c=C("")local P=(f("\070\114\097\109\101"))({BackgroundTransparency=.99;Size=UDim2.fromOffset(300,200);Parent=i;[v]={m({Text=c;AnchorPoint=C(Vector2.new(.5,.5));Position=C(UDim2.fromScale(.5,.5));Width=C(UDim.new(.7,0))}),(f("\084\101\120\116\076\097\098\101\108"))({AnchorPoint=Vector2.new(.5,1);Position=UDim2.new(.5,0,1,-14);Size=UDim2.fromOffset(0,14),TextWrapped=false;TextXAlignment=Enum.TextXAlignment.Center,Text=c})}})return function()P:Destroy()end end
local Packages = script.Parent.Parent.Packages
local Components = script.Parent

local Fusion = require(Packages.Fusion)
local Component = require(Components.TextBox)

local New = Fusion.New
local State = Fusion.State
local Children = Fusion.Children

return function(target)
    local textState = State("")
    local component = New "Frame" {
        BackgroundTransparency = 0.99,
        Size = UDim2.fromOffset(300, 200),
        Parent = target,

        [Children] = {
            Component {
                Text = textState,
                AnchorPoint = State(Vector2.new(0.5, 0.5)),
                Position = State(UDim2.fromScale(0.5, 0.5)),
                Width = State(UDim.new(0.7, 0))
            },

            New "TextLabel" {
                AnchorPoint = Vector2.new(0.5, 1),
                Position = UDim2.new(0.5, 0, 1, -14),
                Size = UDim2.fromOffset(0, 14),
                TextWrapped = false,
                TextXAlignment = Enum.TextXAlignment.Center,
                Text = textState,
            }
        }
    }

    return function()
        component:Destroy()
    end
end