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.

491 B
Raw Blame
import { throwOnErr } from '@core/util/result';
import { staticFileClient } from '@service-static-files/client';
import { useMutation } from '@tanstack/solid-query';

export function usePrepareSharedMediaMutation() {
  return useMutation(() => ({
    gcTime: 0,
    mutationFn: (file: { name: string; mimeType: string }) =>
      throwOnErr(() =>
        staticFileClient.makePresignedUrl({
          file_name: file.name,
          content_type: file.mimeType,
        })
      ),
  }));
}