import { jsx } from "react/jsx-runtime";
import "react";
import "clsx";
import { useProps } from "../../core/MantineProvider/use-props/use-props.mjs";
import { useStyles } from "../../core/styles-api/use-styles/use-styles.mjs";
import { Box } from "../../core/Box/Box.mjs";
import { polymorphicFactory } from "../../core/factory/polymorphic-factory.mjs";
import classes from "./Center.module.css.mjs";
const defaultProps = {};
const Center = polymorphicFactory((_props, ref) => {
  const props = useProps("Center", defaultProps, _props);
  const { classNames, className, style, styles, unstyled, vars, inline, mod, ...others } = props;
  const getStyles = useStyles({
    name: "Center",
    props,
    classes,
    className,
    style,
    classNames,
    styles,
    unstyled,
    vars
  });
  return /* @__PURE__ */ jsx(Box, { ref, mod: [{ inline }, mod], ...getStyles("root"), ...others });
});
Center.classes = classes;
Center.displayName = "@mantine/core/Center";
export {
  Center
};
