Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

TableSummary.tsx

15 lines404 Bytes

1type TableSummaryProps = {
2 totalCount: number
3 resultCount: number
4}
5​
6function TableSummary({ totalCount, resultCount }: TableSummaryProps) {
7 const summary =
8 resultCount === totalCount
9 ? `Displaying ${resultCount} records`
10 : `Displaying ${resultCount} of ${totalCount} records`
11​
12 return <p className="text-sm text-muted-foreground px-6">{summary}</p>
14​
15export default TableSummary