mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
* fix: make tunnels work in multi-instance scenarios * factor tunnels out * use tunnel-rat fork until upsteam updated
24 lines
692 B
TypeScript
24 lines
692 B
TypeScript
import clsx from "clsx";
|
|
import { useExcalidrawAppState } from "../App";
|
|
import { useTunnels } from "../context/tunnels";
|
|
import "./FooterCenter.scss";
|
|
|
|
const FooterCenter = ({ children }: { children?: React.ReactNode }) => {
|
|
const { footerCenterTunnel } = useTunnels();
|
|
const appState = useExcalidrawAppState();
|
|
return (
|
|
<footerCenterTunnel.In>
|
|
<div
|
|
className={clsx("footer-center zen-mode-transition", {
|
|
"layer-ui__wrapper__footer-left--transition-bottom":
|
|
appState.zenModeEnabled,
|
|
})}
|
|
>
|
|
{children}
|
|
</div>
|
|
</footerCenterTunnel.In>
|
|
);
|
|
};
|
|
|
|
export default FooterCenter;
|
|
FooterCenter.displayName = "FooterCenter";
|