@launchmenu/core
Version:
An environment for visual keyboard controlled applets
20 lines • 1.33 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.createSettingsFolder = void 0;
const createFolderMenuItem_1 = require("../../menus/items/types/createFolderMenuItem");
const settingPatternMatcher_1 = require("./settingPatternMatcher");
/**
* Creates a new settings category to organize the settings
* @param data The data to create the category with
* @returns The menu item that can be displayed, as well as the children settings
*/
function createSettingsFolder(data) {
return createFolderMenuItem_1.createFolderMenuItem({
icon: "settings",
searchPattern: settingPatternMatcher_1.settingPatternMatcher,
searchIcon: "settings",
...data,
});
}
exports.createSettingsFolder = createSettingsFolder;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlU2V0dGluZ3NGb2xkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc2V0dGluZ3MvaW5wdXRzL2NyZWF0ZVNldHRpbmdzRm9sZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBLHVGQUFrRjtBQUVsRixtRUFBOEQ7QUFFOUQ7Ozs7R0FJRztBQUNILFNBQWdCLG9CQUFvQixDQUlsQyxJQUE0QjtJQUMxQixPQUFPLDJDQUFvQixDQUFDO1FBQ3hCLElBQUksRUFBRSxVQUFVO1FBQ2hCLGFBQWEsRUFBRSw2Q0FBcUI7UUFDcEMsVUFBVSxFQUFFLFVBQVU7UUFDdEIsR0FBRyxJQUFJO0tBQ1YsQ0FBQyxDQUFDO0FBQ1AsQ0FBQztBQVhELG9EQVdDIn0=
;