mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
24 lines
698 B
TypeScript
24 lines
698 B
TypeScript
import clsx from "clsx";
|
|
import { useTunnels } from "../../context/tunnels";
|
|
import "./FooterCenter.scss";
|
|
import { useUIAppState } from "../../context/ui-appState";
|
|
|
|
const FooterCenter = ({ children }: { children?: React.ReactNode }) => {
|
|
const { FooterCenterTunnel } = useTunnels();
|
|
const appState = useUIAppState();
|
|
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";
|