import React from 'react'; import { useNavigate } from 'react-router-dom'; import Sidebar from '../sidebar/Sidebar'; const CustomerList = () => { const navigate = useNavigate(); const customers = [ { id: '12d22', name: 'jane cooper' }, { id: '5d255', name: 'esther howard' }, { id: '147r7', name: 'guy hawkins' }, { id: '124fd', name: 'savannah nguyen' }, ]; const handleAddCustomer = () => { navigate('/add-customer'); }; return (

customers list

filter

total customers ({customers.length})

{customers.map((customer, index) => ( ))}
# customer id customer name
{index + 1} {customer.id} {customer.name}
); }; export default CustomerList;