excalidraw/packages/excalidraw/components/footer/FooterCenter.tsx
2025-04-15 17:38:03 +05:45

26 lines
708 B
TypeScript

import clsx from "clsx";
import { useTunnels } from "../../src/context/tunnels";
import { useUIAppState } from "../../src/context/ui-appState";
import "./FooterCenter.scss";
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";