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.

641 B
Raw Blame
import { cn } from '@ui';
import { For } from 'solid-js';
import type { LessonState } from './types';

interface OnboardingProgressProps {
  lessons: LessonState[];
  currentIndex: number;
}

export function OnboardingProgress(props: OnboardingProgressProps) {
  return (
    <div class="flex items-center gap-1">
      <For each={props.lessons}>
        {(lesson, i) => (
          <div
            class={cn('size-2 border border-edge-muted rounded-full', {
              'bg-ink/10': lesson.completed,
              'border-edge bg-edge': i() === props.currentIndex,
            })}
          />
        )}
      </For>
    </div>
  );
}