Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
import WhatsappLogo from '@phosphor/whatsapp-logo.svg';
import WhatsappLogoBold from '@phosphor-icons/core/bold/whatsapp-logo-bold.svg';
import type { ExternalChatProvider } from '@service-storage/generated/schemas/externalChatProvider';
import type { Component, JSX } from 'solid-js';
type Icon = Component<JSX.SvgSVGAttributes<SVGSVGElement>>;
/** How a provider is named and drawn, apart from its formatting code. */
export type ProviderIdentity = {
/** The service's name in copy: "Connect WhatsApp". */
label: string;
icon: Icon;
boldIcon: Icon;
};
/**
* Names and logos alone, for surfaces outside the conversation (entity icons,
* notifications) that shouldn't load the registry's formatting code.
*/
const IDENTITIES: Record<ExternalChatProvider, ProviderIdentity> = {
whatsapp: {
label: 'WhatsApp',
icon: WhatsappLogo,
boldIcon: WhatsappLogoBold,
},
};
export function providerIdentity(
provider: ExternalChatProvider
): ProviderIdentity {
return IDENTITIES[provider];
}