({ onClick } : {onClick : () => void})
| 11 | } from './ui/alert-dialog'; |
| 12 | |
| 13 | const ExitGameModel = ({ onClick } : {onClick : () => void}) => { |
| 14 | |
| 15 | return ( |
| 16 | <AlertDialog> |
| 17 | <AlertDialogTrigger className='w-24 h-12 bg-stone-800 rounded-md font-semibold text-white'>Exit</AlertDialogTrigger> |
| 18 | <AlertDialogContent className='bg-stone-800 border-stone-800'> |
| 19 | <AlertDialogHeader> |
| 20 | <AlertDialogTitle className='text-white font-mono'>Are you absolutely sure?</AlertDialogTitle> |
| 21 | <AlertDialogDescription className='text-white font-mono'> |
| 22 | This action cannot be undone. This will be considered as a loss. |
| 23 | </AlertDialogDescription> |
| 24 | </AlertDialogHeader> |
| 25 | <AlertDialogFooter> |
| 26 | <AlertDialogCancel className='font-mono bg-[#739552] text-white font-semibold hover:bg-[#b2e084] hover:text-gray-700 border-none'>Continue</AlertDialogCancel> |
| 27 | <AlertDialogAction |
| 28 | onClick={onClick} |
| 29 | className='bg-[#e2e6aa] min-w-20 text-gray-900 hover:text-slate-100 hover:bg-[#bbc259] font-semibold' |
| 30 | > |
| 31 | Exit |
| 32 | </AlertDialogAction> |
| 33 | </AlertDialogFooter> |
| 34 | </AlertDialogContent> |
| 35 | </AlertDialog> |
| 36 | ); |
| 37 | }; |
| 38 | |
| 39 | export default ExitGameModel; |
nothing calls this directly
no outgoing calls
no test coverage detected