import { jsx } from "react/jsx-runtime";
import "react";
import "clsx";
import { useProps } from "../../../core/MantineProvider/use-props/use-props.mjs";
import { Box } from "../../../core/Box/Box.mjs";
import { factory } from "../../../core/factory/factory.mjs";
import { useAppShellContext } from "../AppShell.context.mjs";
import classes from "../AppShell.module.css.mjs";
const defaultProps = {};
const AppShellMain = factory((_props, ref) => {
  const props = useProps("AppShellMain", defaultProps, _props);
  const { classNames, className, style, styles, vars, ...others } = props;
  const ctx = useAppShellContext();
  return /* @__PURE__ */ jsx(
    Box,
    {
      component: "main",
      ref,
      ...ctx.getStyles("main", { className, style, classNames, styles }),
      ...others
    }
  );
});
AppShellMain.classes = classes;
AppShellMain.displayName = "@mantine/core/AppShellMain";
export {
  AppShellMain
};
