| 1 | import { Spinner } from "~/components/ui/spinner"; |
| 2 | |
| 3 | import { threadSyncLabel, type ThreadSyncPhase } from "../../threadSync"; |
| 4 | import { ComposerBanner } from "./ComposerBanner"; |
| 5 | |
| 6 | export function ComposerActivityRow({ phase }: { readonly phase: ThreadSyncPhase }) { |
| 7 | return ( |
| 8 | <ComposerBanner.Row> |
| 9 | <ComposerBanner.Icon> |
| 10 | <Spinner /> |
| 11 | </ComposerBanner.Icon> |
| 12 | <ComposerBanner.Content> |
| 13 | <span |
| 14 | className="shrink-0 whitespace-nowrap text-muted-foreground" |
| 15 | data-composer-sync-status={phase} |
| 16 | role="status" |
| 17 | > |
| 18 | {threadSyncLabel(phase)} |
| 19 | </span> |
| 20 | </ComposerBanner.Content> |
| 21 | </ComposerBanner.Row> |
| 22 | ); |
| 23 | } |