MCPcopy
hub / github.com/tone-row/flowchart-fun / handleSvgAction

Function handleSvgAction

app/src/components/DownloadDropdown.tsx:79–89  ·  view source on GitHub ↗
(action: "download" | "copy")

Source from the content-addressed store, hash-verified

77 };
78
79 const handleSvgAction = (action: "download" | "copy") => {
80 if (hasProAccess) {
81 action === "download" ? handleDownload("svg") : handleCopy("svg");
82 } else {
83 showPaywall({
84 title: t`SVG Export is a Pro Feature`,
85 content: t`Upgrade to Flowchart Fun Pro to unlock SVG exports and enjoy more advanced features for your diagrams.`,
86 toPricingCode: "SVGExport",
87 });
88 }
89 };
90
91 return (
92 <>

Callers 1

DownloadDropdownFunction · 0.85

Calls 3

showPaywallFunction · 0.90
handleDownloadFunction · 0.85
handleCopyFunction · 0.85

Tested by

no test coverage detected