Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

589 B
Raw Blame
import { i18n } from '@mimik/core/env';

const WAVE_BARS = [3, 7, 4, 8, 5];

export function SpokenMark({ talking }: { talking: boolean }) {
  return (
    <span role="img" aria-label={i18n.t('videoPlayer.spoken')} className="flex shrink-0 items-center gap-[2px]">
      {WAVE_BARS.map((height, i) => (
        <span
          key={height}
          className={`w-[2px] rounded-[1px] ${talking ? 'animate-talk bg-primary' : 'bg-muted-foreground/60'}`}
          style={{ height: `${height}px`, animationDelay: talking ? `${i * 90}ms` : undefined }}
        />
      ))}
    </span>
  );
}