text: const OrderIndex = ({ orders }) => {
    return (
      <ul>
        {orders.map((order) => {
          return (
            <li key={order.id}>
              {order.ticket.title} - {order.status}
            </li>
          );
        })}
      </ul>
    );
  };
  
  OrderIndex.getInitialProps = async (context, client) => {
    const { data } = await client.get("/api/orders");
    console.log(data);
    return { orders: data };
  };
  
  export default OrderIndex;
  