excalidraw/src/excalidraw-app/components/ExcalidrawPlusAppLink.tsx

18 lines
451 B
TypeScript
Raw Normal View History

import { isExcalidrawPlusSignedUser } from "../../constants";
export const ExcalidrawPlusAppLink = () => {
if (!isExcalidrawPlusSignedUser) {
return null;
}
return (
<a
href={`${process.env.REACT_APP_PLUS_APP}?utm_source=excalidraw&utm_medium=app&utm_content=signedInUserRedirectButton#excalidraw-redirect`}
target="_blank"
rel="noreferrer"
className="plus-button"
>
Go to Excalidraw+
</a>
);
};