// /AIWK_COMMON/group/aiwk_seg.js
// AIWK EXT4 v003
(function () {
    "use strict";

    const AIWK = window.AIWK;

    AIWK.seg = {
        createButton: function (label, onClick) {
            const btn = document.createElement("button");
            btn.type = "button";
            btn.className = "aiwk-seg-btn";
            btn.textContent = label;
            btn.addEventListener("click", onClick);
            return btn;
        }
    };
}());
