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 {
ChannelInput,
type InputHandle,
type InputSnapshot,
} from '@channel/Input';
import type { MessageParent } from '@service-storage/messages';
export function SpreadsheetCommentComposer(props: {
parent: MessageParent;
onSend: (snapshot: InputSnapshot) => Promise<void>;
autofocus?: boolean;
}) {
let input: InputHandle | undefined;
return (
<ChannelInput
parent={props.parent}
flat
autofocus={props.autofocus ?? false}
input={{ mode: 'reply', placeholder: 'Leave a comment...' }}
onReady={(handle) => (input = handle)}
onSend={async (snapshot) => {
await props.onSend(snapshot);
input?.clear();
}}
/>
);
}