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 { AskMacroButton } from '@app/features/chat/ChatWithAgentButton';
import { HeaderActionGroup } from '@components/app/HeaderActionGroup';
import {
FileDetailsSection,
FilePropertiesSection,
SidePanel,
} from '@components/app/side-panel';
import { useBlockId } from '@core/block';
import { blockMetadataSignal } from '@core/signal/load';
import { useBlockDocumentName } from '@core/util/currentBlockDocumentName';
export function PdfSidePanelSections() {
return (
<>
<SidePanel.HeaderActions>
<PdfHeaderActions />
</SidePanel.HeaderActions>
<FileDetailsSection order={20} />
<FilePropertiesSection order={30} />
</>
);
}
function PdfHeaderActions() {
const documentId = useBlockId();
const name = useBlockDocumentName('Unknown Filename');
const fileType = () => blockMetadataSignal()?.fileType;
return (
<HeaderActionGroup label="Actions">
<AskMacroButton
grouped
entity={{
type: 'document',
id: documentId,
name: name(),
fileType: fileType(),
}}
/>
</HeaderActionGroup>
);
}