Matched call card
A call already linked to people: they head the card and open each one, and a dialog links one more.
What it shows
A call already linked to people.
Props
| Prop | Type | What it does |
|---|---|---|
title | ReactNode | The call's title, shown when no person is linked yet. |
people | readonly TPerson[] | The people the call is linked to. They replace the title as buttons that open each one. |
onOpenPerson | (person: TPerson) => void | |
source | ReactNode | |
timestamp | ReactNode | |
participants | readonly CallParticipant[] | Who was on the call besides the people in the heading. |
summary | ReactNode | |
transcript | ReactNode | The transcript preview, until the full transcript loads. |
segments | readonly CallSegment[] | null | |
loadTranscript | () => Promise<CallTranscript | null | undefined> | Fetches the full transcript the first time it is opened. |
linkPerson | MatchedCallLinkPerson<TPerson> | Offers to link the call to another person. Omit it and the header has no link action. |
insights (required) | CallInsights | The host's check of the call against its open roles. |
roleMatches | ReactNode | The roles the check suggested. Once insights are ready and this is empty, the card says no role fits. |
labels | Partial<MatchedCallCardLabels> | |
className | string | Class for the card. Its root is the kit's CallCard, which takes no other attributes. |
Data it needs
The component takes plain values and callbacks and keeps no records of its own. Pass it yours, from the Kith data layer or from a backend you already run.
Copy to your agent
Install RecruiterOS/recruit-ui and add a card for a call already linked to people, with a way to link one more.