recruit/candidate-contact-channels-menu · CandidateContactChannelsMenu

Contact channels menu

Records which channels a candidate was contacted through, with your recency text and a remove action for mistakes.

Install

With your coding agentInstall RecruiterOS/recruit-ui and add a menu that logs which channels a candidate was contacted on.
With the shadcn CLIpnpm dlx shadcn@latest add RecruiterOS/recruit-ui/recruit-workflows

Props

PropTypeWhat it does
optionsrequiredreadonly CandidateContactChannelOption[]The channels, in menu order.
touchedrequiredReadonly<Record<string, ReactNode>>The channels already used, by option id, each with what to show beside it (usually how recently). An id that is absent, null, undefined or false has not been used.
onTouchrequired(id: string) => voidCalled when a channel is picked; picking a used channel again refreshes it.
onRemoverequired(id: string) => voidCalled from the remove items.
compactbooleanA shorter trigger for tight action rows.
labelsPartial<CandidateContactChannelsMenuLabels>

Data

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.