MCPcopy Create free account
hub / github.com/code100x/chess / PlayerTitle

Function PlayerTitle

apps/frontend/src/components/PlayerTitle.tsx:8–22  ·  view source on GitHub ↗
({player, isSelf}: PlayerTitleProps)

Source from the content-addressed store, hash-verified

6}
7
8export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected