"use client"; import type { Room } from "../api/rooms/route"; type LobbyScreenProps = { room: Room; playerId: string; error: string | null; setError: (v: string | null) => void; loading: boolean; onLeave: () => void; onStart: () => void; onReset: () => void; }; export function LobbyScreen({ room, playerId, error, setError, loading, onLeave, onStart, onReset, }: LobbyScreenProps) { const isHost = room.players.find((p) => p.id === playerId)?.isHost ?? false; return (
En attente que l'hote demarre...
)}