diff options
Diffstat (limited to 'excalidraw-app/components/ExcalidrawPlusAppLink.tsx')
| -rw-r--r-- | excalidraw-app/components/ExcalidrawPlusAppLink.tsx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/excalidraw-app/components/ExcalidrawPlusAppLink.tsx b/excalidraw-app/components/ExcalidrawPlusAppLink.tsx new file mode 100644 index 0000000..88cc0fc --- /dev/null +++ b/excalidraw-app/components/ExcalidrawPlusAppLink.tsx @@ -0,0 +1,19 @@ +import { isExcalidrawPlusSignedUser } from "../app_constants"; + +export const ExcalidrawPlusAppLink = () => { + if (!isExcalidrawPlusSignedUser) { + return null; + } + return ( + <a + href={`${ + import.meta.env.VITE_APP_PLUS_APP + }?utm_source=excalidraw&utm_medium=app&utm_content=signedInUserRedirectButton#excalidraw-redirect`} + target="_blank" + rel="noreferrer" + className="plus-button" + > + Go to kj-diagramming cloud + </a> + ); +}; |
