MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / UpgradeModal

Function UpgradeModal

src/components/upgrade-modal.tsx:20–45  ·  view source on GitHub ↗
({ 
  open, 
  onOpenChange
}: UpgradeModalProps)

Source from the content-addressed store, hash-verified

18};
19
20export 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};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected