Open History to see the last commit
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>
13}
14
15export default TableSummary