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
/**
* Returns true if the user's most recent input modality matches the provided value.
*
* The modality reflects the most recent input type the user has used.
*/
export function isModality(modality: 'mouse' | 'keyboard' | 'touch'): boolean {
if (typeof document === 'undefined') return false;
return document.documentElement.dataset.modality === modality;
}