Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

571 B
Raw Blame
import { paneRoute } from '@app/routes/app-route';
import type { SplitContent } from '@components/app/split-layout/layoutManager';

/** Open recordings in Calls without mounting a legacy call block. */
export function callsHostedContent(content: {
  type: string;
  id: string;
}): SplitContent | undefined {
  if (content.type !== 'call') return;

  return {
    type: 'component',
    id: 'calls',
    entryMetadata: {
      route: paneRoute(
        { id: 'view-calls', params: {} },
        { id: 'calls-call', params: { callId: content.id } }
      ),
    },
  };
}