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

Function CannotSaveButton

app/src/components/FlowchartHeader.tsx:125–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123}
124
125function CannotSaveButton() {
126 return (
127 <Button2
128 leftIcon={<FloppyDisk weight="bold" className="w-4 h-4" />}
129 data-session-activity="Save Chart: Upgrade"
130 onClick={() => {
131 showPaywall({
132 title: createUnlimitedTitle(),
133 content: createUnlimitedContent(),
134 toPricingCode: "Unlimited Charts",
135 });
136 }}
137 >
138 <Trans>Save</Trans>
139 </Button2>
140 );
141}
142function CanSaveButton() {
143 const [open, setOpen] = useState(false);
144 const [createType, setCreateType] = useState<"cloud" | "file" | null>(null);

Callers

nothing calls this directly

Calls 3

showPaywallFunction · 0.90
createUnlimitedTitleFunction · 0.90
createUnlimitedContentFunction · 0.90

Tested by

no test coverage detected