import { createColumnHelper } from "@tanstack/react-table" import { useMemo } from "react" import { useTranslation } from "react-i18next" import { TextCell, TextHeader, } from "../../../components/table/table-cells/common/text-cell" import { HttpTypes } from "@medusajs/types" const columnHelper = createColumnHelper() export const useCustomerGroupTableColumns = () => { const { t } = useTranslation() return useMemo( () => [ columnHelper.accessor("name", { header: () => , cell: ({ getValue }) => , }), columnHelper.accessor("customers", { header: () => , cell: ({ getValue }) => { const count = getValue()?.length ?? 0 return }, }), ], [t] ) }