mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-12 00:34:21 +01:00
27 lines
708 B
TypeScript
27 lines
708 B
TypeScript
import { Footer } from "@excalidraw/excalidraw/index";
|
|
import React from "react";
|
|
|
|
import { isExcalidrawPlusSignedUser } from "../app_constants";
|
|
|
|
import { DebugFooter, isVisualDebuggerEnabled } from "./DebugCanvas";
|
|
import { EncryptedIcon } from "./EncryptedIcon";
|
|
|
|
export const AppFooter = React.memo(
|
|
({ onChange }: { onChange: () => void }) => {
|
|
return (
|
|
<Footer>
|
|
<div
|
|
style={{
|
|
display: "flex",
|
|
gap: ".5rem",
|
|
alignItems: "center",
|
|
}}
|
|
>
|
|
{isVisualDebuggerEnabled() && <DebugFooter onChange={onChange} />}
|
|
{!isExcalidrawPlusSignedUser && <EncryptedIcon />}
|
|
</div>
|
|
</Footer>
|
|
);
|
|
},
|
|
);
|