local _, addonTable = ...
local core = addonTable
local TRANSLATE = core.TRANSLATE or function(msg) return msg end

core.CarpoolTab = core.CarpoolTab or {}
local CarpoolTab = core.CarpoolTab

function CarpoolTab.Build(owner, tabGroup)
    if not (core.GroupTab and core.GroupTab.BuildList) then
        return
    end

    core.GroupTab.BuildList(owner, tabGroup, {
        tabKey = "carpool",
        columnWidths = core.CARPOOL_LIST_COLUMN_WIDTHS,
        centerList = true,
        lastColumnText = "所属战团",
        emptyText = TRANSLATE("车队列表中没有战团角色"),
    })
end
