"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useTimelockRoles = void 0;
var react_1 = require("react");
var common_1 = require("../common");
var useTimelockRoles = function (timelock) {
    var TIMELOCK_ADMIN_ROLE = (0, common_1.useCallOnce)(timelock === null || timelock === void 0 ? void 0 : timelock.TIMELOCK_ADMIN_ROLE).res;
    var PROPOSER_ROLE = (0, common_1.useCallOnce)(timelock === null || timelock === void 0 ? void 0 : timelock.PROPOSER_ROLE).res;
    var EXECUTOR_ROLE = (0, common_1.useCallOnce)(timelock === null || timelock === void 0 ? void 0 : timelock.EXECUTOR_ROLE).res;
    var timelockRoles = (0, react_1.useMemo)(function () {
        return [
            { label: 'Timelock Admin', value: TIMELOCK_ADMIN_ROLE },
            { label: 'Timelock Proposer', value: PROPOSER_ROLE },
            { label: 'Timelock Executor', value: EXECUTOR_ROLE },
        ];
    }, [TIMELOCK_ADMIN_ROLE, PROPOSER_ROLE, EXECUTOR_ROLE]);
    return timelockRoles;
};
exports.useTimelockRoles = useTimelockRoles;
//# sourceMappingURL=useTimelockRoles.js.map