Skip to content

The open alternative to Salesforce, designed for AI.

416 B
Raw Blame
import { Tag as StatusChip } from 'twenty-ui/primitives/data-display';
import { recordingLabel } from '../utils/recordingLabel';

export const Status = ({ status }: { status: string }) => (
  <StatusChip
    color={
      status.toUpperCase() === 'FAILED'
        ? 'red'
        : status.toUpperCase() === 'PROCESSING'
          ? 'blue'
          : 'gray'
    }
  >
    {recordingLabel(status)}
  </StatusChip>
);