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.

533 B
Raw Blame
import { defineBlock, LoadErrors } from '@core/block';
import { ok } from 'neverthrow';
import { lazy } from 'solid-js';

/** A CRM pipeline, which opens in the Customers view. */
export const definition = defineBlock({
  name: 'pipeline',
  description: 'View a CRM pipeline',
  component: lazy(() => import('./component/PipelineBlock')),
  liveTrackingEnabled: false,
  async load(source, _intent) {
    if (source.type === 'dss') {
      return ok({ id: source.id });
    }
    return LoadErrors.MISSING;
  },
  accepted: {},
});