import { DataTable } from "@/shared/ui/DataTable.jsx";

export function HostOrgTable({ columns, regionFilter, ...props }) {
    const tableColumns = regionFilter
        ? columns.map((column) => (column.key === "regionId" ? { ...column, filter: regionFilter } : column))
        : columns;

    return <DataTable {...props} columns={tableColumns} />;
}
