()
| 123 | } |
| 124 | |
| 125 | function 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 | } |
| 142 | function CanSaveButton() { |
| 143 | const [open, setOpen] = useState(false); |
| 144 | const [createType, setCreateType] = useState<"cloud" | "file" | null>(null); |
nothing calls this directly
no test coverage detected