2023-01-31 13:53:20 +01:00
|
|
|
import React from "react";
|
2023-12-12 11:32:51 +05:30
|
|
|
import { Footer } from "../../packages/excalidraw/index";
|
2023-01-31 13:53:20 +01:00
|
|
|
import { EncryptedIcon } from "./EncryptedIcon";
|
|
|
|
import { ExcalidrawPlusAppLink } from "./ExcalidrawPlusAppLink";
|
2023-09-19 14:20:59 +02:00
|
|
|
import { isExcalidrawPlusSignedUser } from "../app_constants";
|
2023-01-31 13:53:20 +01:00
|
|
|
|
|
|
|
export const AppFooter = React.memo(() => {
|
|
|
|
return (
|
|
|
|
<Footer>
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
display: "flex",
|
|
|
|
gap: ".5rem",
|
|
|
|
alignItems: "center",
|
|
|
|
}}
|
|
|
|
>
|
2023-09-19 14:20:59 +02:00
|
|
|
{isExcalidrawPlusSignedUser ? (
|
|
|
|
<ExcalidrawPlusAppLink />
|
|
|
|
) : (
|
|
|
|
<EncryptedIcon />
|
|
|
|
)}
|
2023-01-31 13:53:20 +01:00
|
|
|
</div>
|
|
|
|
</Footer>
|
|
|
|
);
|
|
|
|
});
|