import {Flex, Table} from '@mantine/core'; import BarkButton from "../../common/components/BarkButton.tsx"; import {Link, NavLink} from "react-router"; import useCustomerList from "./hooks/useCustomerList.tsx"; function CustomerList() { const customerQuery = useCustomerList(); if (customerQuery.isPending) return 'Loading...' if (customerQuery.error) return 'An error has occurred: ' + customerQuery.error.message return ( <>

ARFF ARFF BARK BARK

Add Customer
Name Company {customerQuery.data?.map((data) => ( {data.name} {data.company} Details ))}
) } export default CustomerList;