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.

727 B
Raw Blame
import { createSignal } from 'solid-js';

export type ShareInboxConflictRequest = {
  emailAddress: string;
  ownerEmail: string;
  onShare: () => void;
};

/**
 * Pending shared-inbox confirmation for link flows that complete outside the
 * `/inbox-link-callback` route (native add-inbox). The web callback route
 * renders its own dialog because closing it also navigates away.
 */
const [shareInboxConflict, setShareInboxConflict] =
  createSignal<ShareInboxConflictRequest | null>(null);

export { shareInboxConflict };

export const requestShareInboxConfirmation = (
  request: ShareInboxConflictRequest
) => setShareInboxConflict(request);

export const dismissShareInboxConfirmation = () => setShareInboxConflict(null);