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 = "COLUMN.OWNING_WARBAND",
        emptyText = TRANSLATE("CARPOOL.EMPTY.NO_WARBAND_CHARACTERS"),
    })
end
