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 { For, type JSX, Show } from 'solid-js';
import type { RoutineTemplate } from '../core/routine-templates';
import { StarterTemplateCard } from './routine-template-strip';
/**
* Where a new routine starts: describe it for AI to draft, or pick a
* template. Either opens the new routine's page to review before it's saved.
*/
export function RoutineStart(props: {
/** The description box; absent where AI drafting is unavailable. */
describe?: JSX.Element;
templates: RoutineTemplate[];
onTemplate(template: RoutineTemplate): void;
}) {
return (
<div class="grid min-w-0 gap-5 pb-4">
{props.describe}
<Show when={props.templates.length}>
<section aria-label="Templates" class="grid min-w-0 gap-2.5">
<h2 class="text-sm font-semibold text-ink">Templates</h2>
<div class="grid grid-cols-[repeat(auto-fill,minmax(17rem,1fr))] gap-2.5">
<For each={props.templates}>
{(template) => (
<StarterTemplateCard
on="dialog"
template={template}
onUse={() => props.onTemplate(template)}
/>
)}
</For>
</div>
</section>
</Show>
</div>
);
}