Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
import { HeaderIsland } from '@components/app/split-layout/components/HeaderIsland';
import Paperclip from '@icon/system/regular/paperclip.svg';
import { Button, SendButton } from '@ui';
import { type JSX, Show } from 'solid-js';
/** Shared header actions for new emails, replies, and forwards. */
export function MobileComposeActions(props: {
attachRef?: (element: HTMLButtonElement) => void;
editingDisabled: boolean;
scheduleControl?: JSX.Element;
sendLabel: string;
sendTooltip?: string;
sendDisabled: boolean;
sending: boolean;
onSend: () => void;
}) {
return (
<HeaderIsland class="h-(--mobile-chrome-button-size) p-[5px]">
<Show when={props.attachRef}>
<Button
aria-label="Attach"
tooltip="Attach"
ref={props.attachRef}
variant="ghost"
size="icon-sm"
disabled={props.editingDisabled}
>
<Paperclip class="size-3.5 touch:size-6 shrink-0 pointer-events-none" />
</Button>
</Show>
{props.scheduleControl}
<SendButton
tooltip={props.sendTooltip ?? props.sendLabel}
aria-label={props.sendLabel}
disabled={props.sendDisabled}
pending={props.sending}
onClick={props.onSend}
/>
</HeaderIsland>
);
}