IssuesTable component

This commit is contained in:
Oliver Bryan
2025-12-14 18:03:54 +00:00
parent dc6c398987
commit c419d3344e
2 changed files with 30 additions and 35 deletions

View File

@@ -0,0 +1,28 @@
import type { IssueRecord } from "@issue/shared";
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
export function IssuesTable({ issues }: { issues: IssueRecord[] }) {
return (
<Table>
<TableHeader>
<TableRow>
<TableHead>ID</TableHead>
<TableHead>Title</TableHead>
<TableHead>Description</TableHead>
{/* below is kept blank to fill the space, used as the "Assignee" column */}
<TableHead></TableHead>
</TableRow>
</TableHeader>
<TableBody>
{issues.map((issue) => (
<TableRow key={issue.id}>
<TableCell className="font-medium">{issue.id}</TableCell>
<TableCell>{issue.title}</TableCell>
<TableCell>{issue.description}</TableCell>
<TableCell>?</TableCell>
</TableRow>
))}
</TableBody>
</Table>
);
}