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.

545 B
Raw Blame
import { UnreadIndicator } from '@entity/components/UnreadIndicator';
import { cn } from '@ui';

/** Fixed geometry keeps the glyph still as unread state changes. */
export function SidebarUnreadDot(props: { active?: boolean }) {
  return (
    <span
      aria-hidden="true"
      data-sidebar-unread-dot
      class={cn(
        'pointer-events-none absolute right-1 top-1 rounded-full ring-2 ring-surface',
        props.active ? 'opacity-100' : 'opacity-0'
      )}
    >
      <UnreadIndicator active class="size-1.5" />
    </span>
  );
}