async function handleClick(e) {
		const $target = e.target;
		if ($target instanceof HTMLElement) {
			const action = $target.getAttribute("action");

			if (action === "set-theme") {
				try {
					theme.type = await select(strings["theme type"], [
						["light", strings["light"]],
						["dark", strings["dark"]],
					]);
					applyTheme();
				} catch (error) {}
				return;
			}

			if (action === "reset-theme") {
				const confirmation = await confirm(
					strings["info"].toUpperCase(),
					strings["reset warning"],
				);
				if (!confirmation) return;
				settings.reset("customTheme");
				themes.update(ThemeBuilder.fromJSON(settings.value.customTheme));
				applyTheme();
				render();
			}
		}
	}
Handle click event
@param {MouseEvent | TouchEvent} e