"use strict";

(async () => {
	await requireFeatureManager();

	featureManager.registerFeature(
		"Hide Tutorials",
		"global",
		() => settings.pages.global.hideTutorials,
		undefined,
		applyStyle,
		applyStyle,
		{
			storage: ["settings.pages.global.hideTutorials"],
		},
		undefined
	);

	async function applyStyle() {
		document.documentElement.style.setProperty("--torntools-hide-tutorials", settings.pages.global.hideTutorials ? "none" : "flex");
	}
})();
