@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
29 lines (28 loc) • 1.14 kB
JavaScript
"use client";
import { useProps } from "../../../core/MantineProvider/use-props/use-props.mjs";
import { factory } from "../../../core/factory/factory.mjs";
import { Box } from "../../../core/Box/Box.mjs";
import { useEmptyStateContext } from "../EmptyState.context.mjs";
import EmptyState_module_default from "../EmptyState.module.mjs";
import { jsx } from "react/jsx-runtime";
//#region packages/@mantine/core/src/components/EmptyState/EmptyStateIndicator/EmptyStateIndicator.tsx
const EmptyStateIndicator = factory((_props) => {
const { classNames, className, style, styles, vars, children, mod, ...others } = useProps("EmptyStateIndicator", null, _props);
const ctx = useEmptyStateContext();
return /* @__PURE__ */ jsx(Box, {
mod: [{ "with-background": ctx.withIndicatorBackground }, mod],
...ctx.getStyles("indicator", {
className,
style,
classNames,
styles
}),
...others,
children
});
});
EmptyStateIndicator.classes = EmptyState_module_default;
EmptyStateIndicator.displayName = "@mantine/core/EmptyStateIndicator";
//#endregion
export { EmptyStateIndicator };
//# sourceMappingURL=EmptyStateIndicator.mjs.map