Call log
Call history the way a phone shows it: direction icons, outcomes, durations — and each row expands into the call's transcript.
Expand the completed call to read its transcript.
Installation
npx shadcn@latest add @handset/call-logInstalls call-transcript as a dependency for the expandable rows.
Usage
import { CallLog } from "@/components/handset/call-log";
<CallLog /> // everything
<CallLog phoneNumberId={number.id} /> // one line's historyProps
| Prop | Type | Default | Description |
|---|---|---|---|
| tenantId | string | — | Scope to one tenant (usually handled server-side). |
| phoneNumberId | string | — | Only calls on one number. |
| formatNumber | (e164: string) => string | US formatter | Display formatting for numbers. |
| pollMs | number | 10000 | Refresh interval. 0 disables polling. |
| limit | number | 25 | Page size. |
| className | string | — | Merged onto the list wrapper. |