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 type { UserIconProps } from '@core/component/UserIcon';
import { emailToMacroId } from '@core/user';
// Resolve an inbox's identity from its own address, not the link's macro_id:
// an own secondary inbox shares the parent account's macro_id, so keying on the
// address gives each inbox its own name and icon.
export function inboxIconProps(emailAddress: string): UserIconProps {
const macroId = emailToMacroId(emailAddress);
return macroId ? { id: macroId } : { email: emailAddress };
}