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 = { patients: any[]; loading: boolean; onDelete: (id: string) => void; currentPage: number; numPages: number; onPageChange: (page: number) => void; }; const ListPatients = ({ patients, loading, onDelete, currentPage, numPages, onPageChange }: Props) => { const corners = useAppSelector((state) => state.style.corners); const bgColor = useAppSelector((state) => state.style.cardsColor); return ( <>
Name
{ item.name }
Age
{ item.age }
Gender
{ item.gender }
Contact
{ item.contact }
History
{ item.history }
Firstname
{ item.firstname }
Lastname
{ item.lastname }
{ item.email }
Contactnumber
{ item.contactnumber }
Historydescription
{ item.historydescription }
Historydocuments
{ item.historydocuments }
No data to display