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.

624 B
Raw Blame
import { authServiceClient } from '@service-auth/client';
import { useMutation } from '@tanstack/solid-query';

/**
 * Mutation for sending a mobile welcome email.
 * Returns the raw `Result` from the client so callers can distinguish
 * between "sent" / "already sent" / rate-limited / invalid-email cases.
 */
export function useSendMobileWelcomeEmail() {
  return useMutation(() => ({
    mutationFn: async (input: {
      email: string;
      attribution?: Record<string, string>;
    }) => {
      return authServiceClient.sendMobileWelcomeEmail(
        input.email,
        input.attribution
      );
    },
  }));
}