import { shield } from "../../components/icons"; import { Tooltip } from "../../components/Tooltip"; import { t } from "../../i18n"; import { languages, useDevice } from "../../packages/excalidraw/index"; import { LanguageList } from "./LanguageList"; import PlusAppLink, { isExcalidrawPlusSignedUser } from "./PlusAppLink"; import PlusLPLink from "./PlusLPLink"; const EncryptedIcon = () => ( {shield} ); const Footer = ({ langCode, onLangChange, }: { langCode: string; onLangChange: (langCode: string) => void; }) => { const device = useDevice(); if (device.isMobile) { const isTinyDevice = window.innerWidth < 362; return (
{t("labels.language")}
{/* FIXME remove after 2021-05-20 */}
{isExcalidrawPlusSignedUser ? : }
); } return ( <> ); }; export default Footer;