Files
supabase__supabase/apps/ui-library/components/dual-realtime-chat.tsx
Ivan Vasilov 23fd9a3a8e fix: Randomize the chat room (#34585)
* Randomize the chat.

* another try.

* Try another fix.

* Fix the docs pages.
2025-03-31 17:39:09 +02:00

13 lines
389 B
TypeScript

import { BlockPreview } from './block-preview'
export function DualRealtimeChat() {
const roomName = `room-${Math.floor(Math.random() * 1000)}`
return (
<div className="flex flex-row -space-x-px w-full">
<BlockPreview name={`realtime-chat-demo?roomName=${roomName}`} isPair />
<BlockPreview name={`realtime-chat-demo?roomName=${roomName}`} isPair />
</div>
)
}