import OrderCard from "@/components/orderCard"; import { loadOrder } from "@/lib/db"; import NavMenu from "@/components/NavMenu"; export default async function Home() { const orders = await loadOrder(); return (
{orders.length === 0 && (

주문이 없습니다.

)}
{orders.map((order) => ( ))}
); }