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 { useEmailLinksContext } from '@core/context/emailLinks';
/**
* Predicate: is this macro id a connected secondary inbox (an extra mailbox the
* current user attached to their own account, `!is_primary`) rather than a real
* user. Not to be confused with a delegated/shared inbox, which is a separate
* loggable user (its own macro id) and reports `is_primary = true`.
*/
export function useIsConnectedSecondaryInbox() {
return useEmailLinksContext().isConnectedSecondaryInbox;
}