import React from "react"; import { loginIcon, ExcalLogo, } from "../../packages/excalidraw/components/icons"; import type { Theme } from "../../packages/excalidraw/element/types"; import { MainMenu } from "../../packages/excalidraw/index"; import { isExcalidrawPlusSignedUser } from "../app_constants"; import { LanguageList } from "../app-language/LanguageList"; export const AppMainMenu: React.FC<{ onCollabDialogOpen: () => any; isCollaborating: boolean; isCollabEnabled: boolean; theme: Theme | "system"; setTheme: (theme: Theme | "system") => void; }> = React.memo((props) => { return ( {props.isCollabEnabled && ( props.onCollabDialogOpen()} /> )} Excalidraw+ {isExcalidrawPlusSignedUser ? "Sign in" : "Sign up"} ); });