// app/(admin)/owner-companies/_components/owner-company-list.tsx "use client"; import { Button } from "@/components/ui/button"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import Link from "next/link"; import { Building2, Users } from "lucide-react"; interface OwnerCompany { id: number; name: string; createdAt: Date; } interface OwnerCompanyListProps { companies: OwnerCompany[]; } export function OwnerCompanyList({ companies }: OwnerCompanyListProps) { if (companies.length === 0) { return (

등록된 회사가 없습니다

첫 번째 발주처 회사를 등록해보세요.

); } return ( 회사명 등록일 작업 {companies.map((company) => (
{company.name}
{new Date(company.createdAt).toLocaleDateString("ko-KR", { year: "numeric", month: "long", day: "numeric", })}
))}
); }