Skip to content

The open alternative to Salesforce, designed for AI.

850 B
Raw Blame
import { type MessageDescriptor } from '@lingui/core';
import { msg } from '@lingui/core/macro';
import {
  IconAlertCircle,
  IconAt,
  IconCheck,
  type IconComponent,
  IconHandClick,
  IconPencil,
  IconUsers,
  IconX,
} from 'twenty-ui/icon';

import { type AiChatThreadReason } from '@/ai/types/AiChatThreadReason';

export const AI_CHAT_THREAD_REASONS: Record<
  AiChatThreadReason,
  { Icon: IconComponent; label: MessageDescriptor }
> = {
  needsInput: { Icon: IconHandClick, label: msg`Needs input` },
  mentioned: { Icon: IconAt, label: msg`Mentioned you` },
  assigned: { Icon: IconUsers, label: msg`Assigned to you` },
  finished: { Icon: IconCheck, label: msg`Finished` },
  failed: { Icon: IconAlertCircle, label: msg`Failed` },
  cancelled: { Icon: IconX, label: msg`Cancelled` },
  draft: { Icon: IconPencil, label: msg`Draft` },
};