{t("customers.domain")}
<_DataTable
table={table}
columns={columns}
pageSize={PAGE_SIZE}
count={count}
filters={filters}
orderBy={[
{ key: "email", label: t("fields.email") },
{ key: "first_name", label: t("fields.firstName") },
{ key: "last_name", label: t("fields.lastName") },
{ key: "has_account", label: t("customers.hasAccount") },
{ key: "created_at", label: t("fields.createdAt") },
{ key: "updated_at", label: t("fields.updatedAt") },
]}
isLoading={isLoading}
navigateTo={(row) => row.original.id}
search
queryObject={raw}
noRecords={{
message: t("customers.list.noRecordsMessage"),
}}
/>
)
}
const CustomerActions = ({
customer,
}: {
customer: HttpTypes.AdminCustomer
}) => {
const { t } = useTranslation()
return (