Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

479 B
Raw Blame
import { canonicalPipedreamSlug } from '@core/pipedream/slugs';
import sources from './connector-icons.json' with { type: 'json' };

const icons = new Map(Object.entries(sources));

/** Local snapshots of actual Pipedream icons keep browser tests offline. */
export function fixtureConnectorIcon(slug: string): string | null {
  if (slug === 'github') return null;
  const icon = icons.get(canonicalPipedreamSlug(slug));
  return icon ? `/connector-icons/${icon.file}` : null;
}