diff --git a/.ai/commit-checkpoints.json b/.ai/commit-checkpoints.json index dde312f3..bae9385e 100644 --- a/.ai/commit-checkpoints.json +++ b/.ai/commit-checkpoints.json @@ -1,7 +1,7 @@ { "last_commit": { - "timestamp": "2025-12-21T22:56:32.894190+00:00", - "session_id": "019b431c-d0bc-7511-a9ac-47633a3ec88c", - "last_entry_timestamp": "2025-12-21T22:56:29.923Z" + "timestamp": "2025-12-21T23:04:42.523116+00:00", + "session_id": "019b4325-bfcd-7a43-bed2-90e50260dd9f", + "last_entry_timestamp": "2025-12-21T23:04:39.775Z" } } \ No newline at end of file diff --git a/packages/web/src/components/ViewerCount.tsx b/packages/web/src/components/ViewerCount.tsx new file mode 100644 index 00000000..64ef3410 --- /dev/null +++ b/packages/web/src/components/ViewerCount.tsx @@ -0,0 +1,34 @@ +import { useStreamViewers } from "@/lib/jazz/useStreamViewers" + +interface ViewerCountProps { + username: string +} + +/** + * Displays the real-time viewer count for a stream + */ +export function ViewerCount({ username }: ViewerCountProps) { + const { viewerCount, isConnected, isLoading } = useStreamViewers(username) + + if (isLoading) { + return ( +
- Connecting to stream... -
++ Connecting to stream... +
++ Connecting to stream... +
+Streaming soon
- - nikiv.dev - -