local w=require(script.Parent.Parent.Parent.roblox_packages.vide)local p=require(script.Parent.Parent.components.button)local r=require(script.Parent.Parent.components.list)local q=require(script.Parent.Parent.components.text_input)local N=require(script.Parent.Parent.components.toast_notification)return function(u)return w.mount(function()local u=w.source("")local k=w.source("")local I=w.source(3)return r({q({text=u;update_text=u,placeholder="\084\101\120\116";multi_line=true});q({text=k;update_text=k,placeholder="\114\098\120\097\115\115\101\116\105\100\058\047\047"}),q({text=I;update_text=function(w)I(tonumber(w)or 0)end}),p({text="\067\114\101\097\116\101 \084\111\097\115\116",activated=function()print(k())N({message=u();icon=k()~=""and k()or nil,alive_for=I()})end})})end,u)end
local vide = require(script.Parent.Parent.Parent.roblox_packages.vide)
local button = require(script.Parent.Parent.components.button)
local list = require(script.Parent.Parent.components.list)
local text_input = require(script.Parent.Parent.components.text_input)
local toast_notification = require(script.Parent.Parent.components.toast_notification)

return function(target)
	
	return vide.mount(function()
		
		local text = vide.source("")
		local icon = vide.source("")
		local alive_for = vide.source(3)

		return list {

			text_input {
				text = text,
				update_text = text,

				placeholder = "Text",
				multi_line = true
			},

			text_input {
				text = icon,
				update_text = icon,

				placeholder = "rbxassetid://"
			},

			text_input {
				text = alive_for,
				update_text = function(input)
					alive_for(tonumber(input) or 0)
				end,
			},

			button {
				text = "Create Toast",

				activated = function()
					print(icon())
					toast_notification {
						message = text(),
						icon = icon() ~= "" and icon() or nil,
						alive_for = alive_for(),
					}
				end
			}

		}

	end, target)

end