Skip to content

The agent that grows with you

819 B
Raw Blame
import { cn } from '@/lib/utils'

import { formatElapsed } from './activity-timer'
import { StableText } from './stable-text'

interface ActivityTimerTextProps {
  'aria-hidden'?: boolean
  seconds: number
  className?: string
}

export function ActivityTimerText({ 'aria-hidden': ariaHidden, seconds, className }: ActivityTimerTextProps) {
  return (
    <StableText
      aria-hidden={ariaHidden}
      className={cn(
        // Tinted with --dt-midground (very low alpha) so the timer reads
        // as part of the same "live signal" cluster as the dither block /
        // arc-border / working-session dot, instead of being neutral chrome.
        'shrink-0 text-[0.56rem] leading-none tracking-[0.02em] text-midground/55',
        className
      )}
    >
      {formatElapsed(seconds)}
    </StableText>
  )
}