import type {
  CommunicationEventType,
} from '@/shared/types/communications';
import { COMMUNICATION_EVENT_TYPES } from '@/shared/constants/communications';

export function toCommunicationEventType(value: string): CommunicationEventType {
  return COMMUNICATION_EVENT_TYPES.find((type) => type === value) ?? 'meeting';
}
