import React from 'react'; import CardBox from '../CardBox'; import dataFormatter from '../../helpers/dataFormatter'; import ListActionsPopover from "../ListActionsPopover"; import {useAppSelector} from "../../stores/hooks"; import {Pagination} from "../Pagination"; import LoadingSpinner from "../LoadingSpinner"; import Link from 'next/link'; type Props = { users: any[]; loading: boolean; onDelete: (id: string) => void; currentPage: number; numPages: number; onPageChange: (page: number) => void; }; const ListUsers = ({ users, loading, onDelete, currentPage, numPages, onPageChange }: Props) => { const corners = useAppSelector((state) => state.style.corners); const bgColor = useAppSelector((state) => state.style.cardsColor); return ( <>
First Name
{ item.firstName }
Last Name
{ item.lastName }
Phone Number
{ item.phoneNumber }
{ item.email }
Disabled
{ dataFormatter.booleanFormatter(item.disabled) }
Avatar
{ item.avatar }
Organization
{ dataFormatter.organizationsOneListFormatter(item.organization) }
No data to display