({
open,
onOpenChange
}: UpgradeModalProps)
| 18 | }; |
| 19 | |
| 20 | export const UpgradeModal = ({ |
| 21 | open, |
| 22 | onOpenChange |
| 23 | }: UpgradeModalProps) => { |
| 24 | return ( |
| 25 | <AlertDialog open={open} onOpenChange={onOpenChange}> |
| 26 | <AlertDialogContent> |
| 27 | <AlertDialogHeader> |
| 28 | <AlertDialogTitle>Upgrade to Pro</AlertDialogTitle> |
| 29 | <AlertDialogDescription> |
| 30 | You need an active subscription to perform this action. Upgrade to |
| 31 | Pro to unlock all features. |
| 32 | </AlertDialogDescription> |
| 33 | </AlertDialogHeader> |
| 34 | <AlertDialogFooter> |
| 35 | <AlertDialogCancel>Cancel</AlertDialogCancel> |
| 36 | <AlertDialogAction |
| 37 | onClick={() => authClient.checkout({ slug: "pro" })} |
| 38 | > |
| 39 | Upgrade Now |
| 40 | </AlertDialogAction> |
| 41 | </AlertDialogFooter> |
| 42 | </AlertDialogContent> |
| 43 | </AlertDialog> |
| 44 | ); |
| 45 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected