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

Function GameModeComponent

apps/frontend/src/components/GameModeComponent.tsx:11–34  ·  view source on GitHub ↗
({
  icon,
  title,
  description,
  onClick,
  disabled,
}: GameModeComponent)

Source from the content-addressed store, hash-verified

9}
10
11const GameModeComponent = ({
12 icon,
13 title,
14 description,
15 onClick,
16 disabled,
17}: GameModeComponent) => (
18 <div
19 onClick={onClick}
20 className="-mx-2 mt-1 bg-bgAuxiliary2 flex items-start space-x-4 rounded-sm p-2 transition-all shadow-lg"
21 >
22 {icon}
23
24 <div className="space-y-1">
25 <p className="text-sm pt-1 font-medium leading-none text-slate-400">
26 {title}
27 </p>
28 <p className="text-xs pt-2 text-muted-foreground">{description}</p>
29 {disabled && (
30 <p className="text-xs text-red-500 font-semibold">Coming Soon ...</p>
31 )}
32 </div>
33 </div>
34);
35
36export default GameModeComponent;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected