static createIcon (icon, event = () => {}) {

		// Create button
		const button = Api.createElement("button");
		button.classList.add("icon");
		button.addEventListener("click", () => {
			event();
		});

		// Add icon to the button
		const iconElement = Api.createElement("img", { src: VALUES.assets + "icons/" + icon + ".png" });
		button.appendChild(iconElement);
		return button;

	}
/**
	 * Creates a button with an icon inside
	 * 
	 * @param {string} icon The icon name
	 * @param {Function} event The click event
	 * @returns {HTMLElement} The button with icon
	 */
Creates a button with an icon inside

@param {string} icon The icon name
@param {Function} event The click event
@returns {HTMLElement} The button with icon
Creates a button with an icon inside @param { string } icon The icon name @param { Function } event The click event @returns { HTMLElement } The button with icon
static createIcon (icon, event = () => {}) {
		const button = Api.createElement("button");
		button.classList.add("icon");
		button.addEventListener("click", () => {
			event();
		});
		const iconElement = Api.createElement("img", { src: VALUES.assets + "icons/" + icon + ".png" });
		button.appendChild(iconElement);
		return button;
	}
static createIcon ( icon , event = ( ) => { } ) { const button = Api . createElement ( "button" ) ; button . classList . add ( "icon" ) ; button . addEventListener ( "click" , ( ) => { event ( ) ; } ) ; const iconElement = Api . createElement ( "img" , { src : VALUES . assets + "icons/" + icon + ".png" } ) ; button . appendChild ( iconElement ) ; return button ; }
Creates a button with an icon inside
Creates a button with an icon inside
// Create button // Add icon to the button