You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
708 B
26 lines
708 B
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> |
|
); |
|
}, |
|
);
|
|
|