UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

24 lines (23 loc) 635 B
'use client'; import _extends from "@babel/runtime/helpers/esm/extends"; import { useDrawingArea } from "../hooks/useDrawingArea.mjs"; import { useChartsLocalization } from "../hooks/useChartsLocalization.mjs"; import { StyledText } from "./common.mjs"; import { jsx as _jsx } from "react/jsx-runtime"; export function ChartsLoadingOverlay(props) { const { top, left, height, width } = useDrawingArea(); const { localeText } = useChartsLocalization(); return /*#__PURE__*/_jsx(StyledText, _extends({ x: left + width / 2, y: top + height / 2 }, props, { children: localeText.loading })); }