@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
22 lines (21 loc) • 631 B
JavaScript
"use client";
import { styles } from "../style.mjs";
import { memo } from "react";
import { jsx } from "react/jsx-runtime";
import { cx } from "antd-style";
//#region src/Layout/components/LayoutSidebar.tsx
const LayoutSidebar = memo(({ headerHeight, children, className, style, ...rest }) => {
return /* @__PURE__ */ jsx("aside", {
className: cx(styles.aside, className),
style: {
top: `var(--layout-header-height, ${headerHeight}px)`,
...style
},
...rest,
children
});
});
LayoutSidebar.displayName = "LayoutSidebar";
//#endregion
export { LayoutSidebar as default };
//# sourceMappingURL=LayoutSidebar.mjs.map