import { useLoaderData } from "react-router-dom";
import MainContentLayout from "../../components/main_content_layout";
import OrderTable from "../../components/order_table";


export default function Orders() {
  const orders = useLoaderData();

  return(
    <MainContentLayout>
      <OrderTable orders={orders}/>
    </MainContentLayout>
  );
}