local G=require(Vendor:WaitForChild("\082\111\097\099\116"))local E=G.createElement local function x(x)return E("\083\099\114\101\101\110\071\117\105",{},{Dialog=E("\070\114\097\109\101",{AnchorPoint=Vector2.new(.5,.5),BackgroundColor3=Color3.fromRGB(31,31,31),BackgroundTransparency=.6,BorderSizePixel=0,Position=UDim2.new(.5,0,.5,0),Size=UDim2.new(0,200,0,0)},{Corners=E("\085\073\067\111\114\110\101\114",{CornerRadius=UDim.new(0,4)});CloseButton=E("\084\101\120\116\066\117\116\116\111\110",{AnchorPoint=Vector2.new(0,1);BackgroundColor3=Color3.fromRGB(0,0,0);BackgroundTransparency=.5,Modal=true;Position=UDim2.new(0,0,1,0);Size=UDim2.new(1,0,0,23);Text="\067\108\111\115\101",Font=Enum.Font.GothamSemibold;TextColor3=Color3.fromRGB(255,255,255);TextSize=11,[G.Event.Activated]=function(G)x.OnDismiss()end},{Corners=E("\085\073\067\111\114\110\101\114",{CornerRadius=UDim.new(0,4)})});Text=E("\084\101\120\116\076\097\098\101\108",{BackgroundTransparency=1;Size=UDim2.new(1,0,1,-23);Font=Enum.Font.GothamSemibold,RichText=true,Text=x.Text;TextColor3=Color3.fromRGB(255,255,255),TextSize=11,TextWrapped=true;[G.Change.TextBounds]=function(G)G.Parent.Size=UDim2.new(0,200,0,(G.TextBounds.Y+23)+26)end},{Padding=E("\085\073\080\097\100\100\105\110\103",{PaddingLeft=UDim.new(0,10),PaddingRight=UDim.new(0,10)})})})})end return x

local Roact = require(Vendor:WaitForChild('Roact'))
local new = Roact.createElement

local function ExportDialog(props)
    return new('ScreenGui', {}, {
        Dialog = new('Frame', {
            AnchorPoint = Vector2.new(0.5, 0.5);
            BackgroundColor3 = Color3.fromRGB(31, 31, 31);
            BackgroundTransparency = 0.6;
            BorderSizePixel = 0;
            Position = UDim2.new(0.5, 0, 0.5, 0);
            Size = UDim2.new(0, 200, 0, 0);
        }, {
            Corners = new('UICorner', {
                CornerRadius = UDim.new(0, 4);
            });
            CloseButton = new('TextButton', {
                AnchorPoint = Vector2.new(0, 1);
                BackgroundColor3 = Color3.fromRGB(0, 0, 0);
                BackgroundTransparency = 0.5;
                Modal = true;
                Position = UDim2.new(0, 0, 1, 0);
                Size = UDim2.new(1, 0, 0, 23);
                Text = 'Close';
                Font = Enum.Font.GothamSemibold;
                TextColor3 = Color3.fromRGB(255, 255, 255);
                TextSize = 11;
                [Roact.Event.Activated] = function (rbx)
                    props.OnDismiss()
                end;
            }, {
                Corners = new('UICorner', {
                    CornerRadius = UDim.new(0, 4);
                });
            });
            Text = new('TextLabel', {
                BackgroundTransparency = 1;
                Size = UDim2.new(1, 0, 1, -23);
                Font = Enum.Font.GothamSemibold;
                RichText = true;
                Text = props.Text;
                TextColor3 = Color3.fromRGB(255, 255, 255);
                TextSize = 11;
                TextWrapped = true;
                [Roact.Change.TextBounds] = function (rbx)
                    rbx.Parent.Size = UDim2.new(0, 200, 0, rbx.TextBounds.Y + 23 + 26)
                end;
            }, {
                Padding = new('UIPadding', {
                    PaddingLeft = UDim.new(0, 10);
                    PaddingRight = UDim.new(0, 10);
                });
            });
        });
    })
end

return ExportDialog
