import {
Pretable,
type PretableColumn,
type PretableRow,
} from "@pretable/react";
const columns: PretableColumn[] = [
{ id: "name", header: "Name", value: (row) => row.name },
{ id: "role", header: "Role", value: (row) => row.role },
{ id: "notes", header: "Notes", value: (row) => row.notes },
];
const rows: PretableRow[] = [
{
id: "1",
name: "Ada",
role: "Engineer",
notes: "Investigating a long-running eval with wrapped explanation text.",
},
{
id: "2",
name: "Grace",
role: "Operator",
notes: "Triaging streamed tool-call output across several retries.",
},
];
export function Queue() {
return (
<Pretable
rows={rows}
columns={columns}
getRowId={(row) => String(row.id)}
/>
);
}
import {
Pretable,
type PretableColumn,
type PretableRow,
} from "@pretable/react";
const columns: PretableColumn[] = [
{ id: "name", header: "Name", value: (row) => row.name },
{ id: "role", header: "Role", value: (row) => row.role },
{ id: "notes", header: "Notes", value: (row) => row.notes },
];
const rows: PretableRow[] = [
{
id: "1",
name: "Ada",
role: "Engineer",
notes: "Investigating a long-running eval with wrapped explanation text.",
},
{
id: "2",
name: "Grace",
role: "Operator",
notes: "Triaging streamed tool-call output across several retries.",
},
];
export function Queue() {
return (
<Pretable
rows={rows}
columns={columns}
getRowId={(row) => String(row.id)}
/>
);
}
import {
Pretable,
type PretableColumn,
type PretableRow,
} from "@pretable/react";
const columns: PretableColumn[] = [
{ id: "name", header: "Name", value: (row) => row.name },
{ id: "role", header: "Role", value: (row) => row.role },
{ id: "notes", header: "Notes", value: (row) => row.notes },
];
const rows: PretableRow[] = [
{
id: "1",
name: "Ada",
role: "Engineer",
notes: "Investigating a long-running eval with wrapped explanation text.",
},
{
id: "2",
name: "Grace",
role: "Operator",
notes: "Triaging streamed tool-call output across several retries.",
},
];
export function Queue() {
return (
<Pretable
rows={rows}
columns={columns}
getRowId={(row) => String(row.id)}
/>
);
}