import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2022-2026 GoodData Corporation
import { insightCreated, insightIsLocked, insightTitle, insightUpdated, insightVisualizationType, } from "@gooddata/sdk-model";
import { DraggableInsightListItemBody } from "../../dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListItemWrapper.js";
/*
 * @internal
 */
export function InsightDraggingComponent({ item }) {
    const insight = item.insight;
    if (!insight) {
        return _jsx(DraggableInsightListItemBody, { className: "move-insight-placeholder" });
    }
    return (_jsx(DraggableInsightListItemBody, { className: "move-insight-placeholder", type: insightVisualizationType(insight), title: insightTitle(insight), updated: insightUpdated(insight) ?? insightCreated(insight), isLocked: insightIsLocked(insight) }));
}
//# sourceMappingURL=InsightDraggingComponent.js.map