({player, isSelf}: PlayerTitleProps)
| 6 | } |
| 7 | |
| 8 | export const PlayerTitle = ({player, isSelf}: PlayerTitleProps) => { |
| 9 | return ( |
| 10 | <div className="flex gap-1"> |
| 11 | {player && player.id.startsWith("guest") && |
| 12 | <p className="text-gray-500"> |
| 13 | [Guest] |
| 14 | </p> |
| 15 | } |
| 16 | <p>{player && player.name}</p> |
| 17 | {isSelf && |
| 18 | <p className="text-gray-500">(You)</p> |
| 19 | } |
| 20 | </div> |
| 21 | ) |
| 22 | } |
nothing calls this directly
no outgoing calls
no test coverage detected