if not plugin then return end local i=script.Parent local c=script local P=i.Packages local m=require(P.Roact)local f=require(c.Components.Main)local C=plugin:CreateToolbar("\065\100\111\110\105\115 \073\110\115\116\097\108\108\101\114")local v=C:CreateButton("\084\111\103\103\108\101\065\100\111\110\105\115\073\110\115\116\097\108\108\101\114\087\105\100\103\101\116","\084\111\103\103\108\101 \065\100\111\110\105\115 \073\110\115\116\097\108\108\101\114 \087\105\100\103\101\116","\114\098\120\116\104\117\109\098\058\047\047\116\121\112\101\061\065\115\115\101\116\038\119\061\049\053\048\038\104\061\049\053\048\038\105\100\061\055\053\049\048\054\050\050\054\050\053","\065\100\111\110\105\115 \073\110\115\116\097\108\108\101\114")v.ClickableWhenViewportHidden=true local b=m.createElement(f,{plugin=plugin;button=v})local z=m.mount(b,nil,"\065\100\111\110\105\115\073\110\115\116\097\108\108\101\114")plugin.Unloading:Connect(function()m.unmount(z)end)
if not plugin then return end

local Root = script.Parent
local Plugin = script
local Packages = Root.Packages

local Roact = require(Packages.Roact)
local Main = require(Plugin.Components.Main)

local toolbar = plugin:CreateToolbar("Adonis Installer")
local button = toolbar:CreateButton(
    "ToggleAdonisInstallerWidget",
    "Toggle Adonis Installer Widget",
    "rbxthumb://type=Asset&w=150&h=150&id=7510622625",
    "Adonis Installer"
)
button.ClickableWhenViewportHidden = true

local main = Roact.createElement(Main, {
    plugin = plugin,
    button = button
})
local tree = Roact.mount(main, nil, "AdonisInstaller")

plugin.Unloading:Connect(function()
    Roact.unmount(tree)
end)