import { jsx as _jsx } from "react/jsx-runtime";
import { DashboardLayoutItemRenderer } from "./DashboardLayoutItemRenderer.js";
import { DashboardLayoutWidgetRenderer } from "./DashboardLayoutWidgetRenderer.js";
const defaultItemRenderer = (props) => (_jsx(DashboardLayoutItemRenderer, { ...props }));
export function DashboardLayoutItem(props) {
    const { item, itemRenderer = defaultItemRenderer, widgetRenderer, rowIndex } = props;
    const renderProps = {
        item,
        DefaultWidgetRenderer: DashboardLayoutWidgetRenderer,
        rowIndex,
    };
    return itemRenderer({
        ...props,
        DefaultItemRenderer: DashboardLayoutItemRenderer,
        children: widgetRenderer(renderProps),
    });
}
//# sourceMappingURL=DashboardLayoutItem.js.map