Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

808 B
Raw Blame
import { Spinner } from '../components/Controls'
import { usePresence } from '../components/Overlay'
import { HStack } from '../components/Stack'
import { Text } from '../components/Text'
import { useTr } from '../lib/use-language'
import { useApp } from '../store/context'
import './refresh-indicator.css'

/** Window-wide feedback also stays visible when the sidebar is collapsed. */
export function RefreshIndicator() {
  const app = useApp()
  const tr = useTr()
  const { mounted, shown } = usePresence(app.refreshing, 120)
  if (!mounted) return null
  return (
    <div className={`refresh-indicator ${shown ? 'shown' : ''}`} role="status" aria-live="polite">
      <HStack gap={8}>
        <Spinner size={14} />
        <Text size="callout">{tr('Loading…')}</Text>
      </HStack>
    </div>
  )
}