- {isExcalidrawPlusSignedUser ? PlusAppLinkJSX : PlusLPLinkJSX}
+ {isExcalidrawPlusSignedUser ? : }
);
diff --git a/src/excalidraw-app/index.tsx b/src/excalidraw-app/index.tsx
index 61c433511..db1f7bc1c 100644
--- a/src/excalidraw-app/index.tsx
+++ b/src/excalidraw-app/index.tsx
@@ -4,13 +4,7 @@ import { trackEvent } from "../analytics";
import { getDefaultAppState } from "../appState";
import { ErrorDialog } from "../components/ErrorDialog";
import { TopErrorBoundary } from "../components/TopErrorBoundary";
-import {
- APP_NAME,
- COOKIES,
- EVENT,
- TITLE_TIMEOUT,
- VERSION_TIMEOUT,
-} from "../constants";
+import { APP_NAME, EVENT, TITLE_TIMEOUT, VERSION_TIMEOUT } from "../constants";
import { loadFromBlob } from "../data/blob";
import {
ExcalidrawElement,
@@ -76,10 +70,10 @@ import { jotaiStore, useAtomWithInitialValue } from "../jotai";
import { reconcileElements } from "./collab/reconciliation";
import { parseLibraryTokensFromUrl, useHandleLibrary } from "../data/library";
import Footer from "./components/Footer";
-
-export const isExcalidrawPlusSignedUser = document.cookie.includes(
- COOKIES.AUTH_STATE_COOKIE,
-);
+import PlusAppLink, {
+ isExcalidrawPlusSignedUser,
+} from "./components/PlusAppLink";
+import PlusLPLink from "./components/PlusLPLink";
const languageDetector = new LanguageDetector();
languageDetector.init({
@@ -191,31 +185,6 @@ const initializeScene = async (opts: {
return { scene: null, isExternalScene: false };
};
-export const PlusLPLinkJSX = (
-
- Introducing Excalidraw+
-
-
- Try out now!
-
-
-);
-
-export const PlusAppLinkJSX = (
-