({
icon,
title,
description,
onClick,
disabled,
}: GameModeComponent)
| 9 | } |
| 10 | |
| 11 | const 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 | |
| 36 | export default GameModeComponent; |
nothing calls this directly
no outgoing calls
no test coverage detected