# Call Log

> Your calls grouped by day: incoming, outgoing and missed with time and length, and what the call was about when an assistant summarised it.

Component · Connectors · Pro kit · [Live page](https://ui.twentyfirst.media/pro/components/CallLog/)

Your calls grouped by day: incoming, outgoing and missed with time and length, and what the call
was about when an assistant summarised it. `onCall` adds a call-back button, `onOpen` opens one.

## Example

```tsx
import { CallLog, Panel } from "@twentyfirstmedia/pro";

const now = new Date(2026, 10, 14, 9, 30);
const at = (day: number, h: number, m: number) => new Date(2026, 10, 14 + day, h, m);

export default function Preview() {
  return (
    <Panel title="Calls" subtitle="With summaries of recorded calls" style={{ maxWidth: 680 }}>
      <CallLog
        now={now}
        onCall={() => {}}
        onOpen={() => {}}
        calls={[
          { id: "1", name: "Dr. Weber's practice", direction: "missed", at: at(0, 8, 52) },
          {
            id: "2",
            name: "Lena",
            direction: "incoming",
            at: at(0, 7, 40),
            duration: 412,
            summary: "Saturday at 7 at Nonna's; she books the table, you bring the wine.",
          },
          {
            id: "3",
            name: "HanseMerkur",
            number: "+49 40 4119 0",
            direction: "outgoing",
            at: at(-1, 15, 10),
            duration: 1260,
            summary: "Travel cover for Dubai confirmed; documents follow by mail.",
          },
          {
            id: "4",
            name: "Garage Schmidt",
            direction: "outgoing",
            at: at(-1, 11, 2),
            duration: 95,
          },
        ]}
      />
    </Panel>
  );
}
```

## Props

### CallLog

| Prop | Type | Notes |
| --- | --- | --- |
| `calls` | `CallItem[]` | Required |
| `now?` | `Date \| string \| number` | "Now" for the day headings. |
| `onCall?` | `(id: string) => void` |  |
| `onOpen?` | `(id: string) => void` |  |
| `label?` | `string` | Accessible name (default "Calls"). |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### Panel

| Prop | Type | Notes |
| --- | --- | --- |
| `side?` | `boolean` |  |
| `title?` | `string` |  |
| `subtitle?` | `string` |  |
| `action?` | `ReactNode` |  |
| `children?` | `ReactNode` |  |
| `surface?` | `Surface` | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |
