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.

583 B
Raw Blame
import { invoke } from '@tauri-apps/api/core';
import { exportNativeFile } from './nativeFileExport';

/** Older installed binaries keep Web Share until the native bridge ships. */
export async function hasIosFileExport(): Promise<boolean> {
  try {
    return await invoke<boolean>('plugin:file-export|available');
  } catch {
    return false;
  }
}

export function exportIosFile(
  file: File,
  action: 'save' | 'share',
  options: { signal: AbortSignal; onProgress: (fraction: number) => void }
) {
  return exportNativeFile('file-export', file, file.name, action, options);
}