Skip to content

The open alternative to Salesforce, designed for AI.

347 B
Raw Blame
import {
  type IconComponent,
  IconGoogle,
  IconKey,
  IconMicrosoftOutlook,
} from 'twenty-ui/icon';
export const guessSsoIdentityProviderIconByUrl = (
  url: string,
): IconComponent => {
  if (url.includes('google')) {
    return IconGoogle;
  }

  if (url.includes('microsoft')) {
    return IconMicrosoftOutlook;
  }

  return IconKey;
};