import { TrashIcon } from '@heroicons/react/solid' import { useOpenOrders } from '../hooks/useOpenOrders' const OpenOrdersTable = () => { const openOrders = useOpenOrders() return (
{openOrders && openOrders.length > 0 ? (
{openOrders.map((order, index) => ( ))}
Market Side Size Price Edit
{order.marketName}
{order.side.toUpperCase()}
{order.size} {order.price}
) : (
No open orders
)}
) } export default OpenOrdersTable