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 { createContext, useContext } from 'solid-js';
import type { ComposeContextValue } from '../primitives/compose-view-state';
const ComposeContext = createContext<ComposeContextValue>();
export const ComposeProvider = ComposeContext.Provider;
export function useCompose(): ComposeContextValue {
const ctx = useContext(ComposeContext);
if (!ctx) {
throw new Error('useCompose must be used within a ComposeProvider');
}
return ctx;
}