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.

313 B
Raw Blame
import type { InputAttachmentData } from '../types';

type InputContent = {
  value?: string;
  attachments?: readonly InputAttachmentData[];
};

export function hasSendableInputContent(input: InputContent): boolean {
  return (
    input.value?.trim().length !== 0 || (input.attachments?.length ?? 0) > 0
  );
}