@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
35 lines (34 loc) • 1.7 kB
JavaScript
"use client";
const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
const require_use_props = require("../../../core/MantineProvider/use-props/use-props.cjs");
const require_factory = require("../../../core/factory/factory.cjs");
const require_Box = require("../../../core/Box/Box.cjs");
const require_AppShell_context = require("../AppShell.context.cjs");
const require_AppShell_module = require("../AppShell.module.cjs");
let react_remove_scroll = require("react-remove-scroll");
let clsx = require("clsx");
clsx = require_runtime.__toESM(clsx);
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/AppShell/AppShellFooter/AppShellFooter.tsx
const AppShellFooter = require_factory.factory((_props) => {
const { classNames, className, style, styles, unstyled, vars, withBorder, zIndex, mod, ...others } = require_use_props.useProps("AppShellFooter", null, _props);
const ctx = require_AppShell_context.useAppShellContext();
if (ctx.disabled) return null;
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
component: "footer",
mod: [{ "with-border": withBorder ?? ctx.withBorder }, mod],
...ctx.getStyles("footer", {
className: (0, clsx.default)({ [react_remove_scroll.RemoveScroll.classNames.zeroRight]: ctx.offsetScrollbars }, className),
classNames,
styles,
style
}),
...others,
__vars: { "--app-shell-footer-z-index": (zIndex ?? ctx.zIndex)?.toString() }
});
});
AppShellFooter.classes = require_AppShell_module.default;
AppShellFooter.displayName = "@mantine/core/AppShellFooter";
//#endregion
exports.AppShellFooter = AppShellFooter;
//# sourceMappingURL=AppShellFooter.cjs.map