import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2020-2026 GoodData Corporation
import { useMemo } from "react";
import { useDashboardComponentsContext } from "../dashboardContexts/DashboardComponentsContext.js";
/**
 * @internal
 */
export function DashboardContent(props) {
    const { dashboard } = props;
    const { DashboardContentComponentProvider } = useDashboardComponentsContext();
    const DashboardContentComponent = useMemo(() => DashboardContentComponentProvider(dashboard), [DashboardContentComponentProvider, dashboard]);
    return _jsx(DashboardContentComponent, { ...props });
}
