"use client" import { useDataClient } from "@conusai-kit/ui/data" import { type ResourceColumn, ResourceList } from "@conusai-kit/ui/patterns" import { Button } from "@conusai-kit/ui/primitives" import { useState } from "react" import type { LedgerLabels } from "./labels.js" /** Cursor reads happen only on user action; no local financial persistence. */ export function LedgerList({ seed, procedure, input, columns, rowId, href, labels, title, }: { seed: { rows: T[]; after?: string | undefined } procedure: string input: Record columns: ResourceColumn[] rowId: (row: T) => string href?: ((row: T) => string) | undefined labels: LedgerLabels title: string }) { const client = useDataClient() const [page, setPage] = useState(seed) const [busy, setBusy] = useState(false) const [failed, setFailed] = useState(false) return ( <> labels.open} empty={{ title: labels.empty }} /> {failed ?

{labels.unavailable}

: null} {page.after ? ( ) : null} ) }