import { jsx as _jsx } from "react/jsx-runtime";
import { defaultImport } from "default-import";
import DefaultMeasure from "react-measure";
// There are known compatibility issues between CommonJS (CJS) and ECMAScript modules (ESM).
// In ESM, default exports of CJS modules are wrapped in default properties instead of being exposed directly.
// https://github.com/microsoft/TypeScript/issues/52086#issuecomment-1385978414
const Measure = defaultImport(DefaultMeasure);
export function DashboardItemContentWrapper({ children }) {
    return (_jsx(Measure, { client: true, children: ({ measureRef, contentRect }) => {
            return (_jsx("div", { className: "dash-item-content-wrapper", ref: measureRef, children: children({
                    clientWidth: contentRect.client?.width,
                    clientHeight: contentRect.client?.height,
                }) }));
        } }));
}
//# sourceMappingURL=DashboardItemContentWrapper.js.map