Skip to content

The open alternative to Salesforce, designed for AI.

740 B
Raw Blame
import { type FrontComponentHostCommunicationApi } from '@/types/FrontComponentHostCommunicationApi';

export const FRONT_COMPONENT_HOST_COMMUNICATION_API_NOOP: FrontComponentHostCommunicationApi =
  {
    navigate: async () => {},
    requestAccessTokenRefresh: async () => '',
    openSidePanelPage: async () => {},
    openCommandConfirmationModal: async () => {},
    unmountFrontComponent: async () => {},
    enqueueSnackbar: async () => {},
    closeSidePanel: async () => {},
    updateProgress: async () => {},
    copyToClipboard: async () => {},
    uploadFile: async () => ({ status: 'failed', reason: 'upload-failed' }),
    storageSet: async () => {},
    storageDelete: async () => {},
    storageClear: async () => {},
  };