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.

781 B
Raw Blame
import type { Accessor } from 'solid-js';
import type { UpcomingCalendarEvent } from '../core/upcoming-calendar-events';

export type ActiveQuickCall = {
  id: string;
  /** The live call behind the meeting, once someone has joined. */
  callId?: string;
  createdBy: string;
  title: string;
  url: string;
};

export type CallSidebarSources = {
  upcoming: {
    events: Accessor<UpcomingCalendarEvent[]>;
    loading: Accessor<boolean>;
    error: Accessor<string | undefined>;
    refresh: () => void;
  };
  active: {
    calls: Accessor<ActiveQuickCall[]>;
    error: Accessor<string | undefined>;
    refresh: () => void;
  };
};

export type CallSidebarActions = {
  openEvent: (event: UpcomingCalendarEvent, anchor: HTMLElement) => void;
  join: (url: string) => void;
};