var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import React from 'react';
import { useStyles } from './styles';
import DragIndicatorIcon from '@mui/icons-material/DragIndicator';
import { useDraggable } from '@dnd-kit/core';
import { DndItemTypes } from '../../types';
export var RowDragIndicator = function (_a) {
    var id = _a.id, rowData = _a.rowData, columnsData = _a.columnsData;
    var styles = useStyles();
    var _b = useDraggable({
        id: id,
        data: {
            type: DndItemTypes.Row,
            rowData: rowData,
            columnsData: columnsData
        }
    }), setNodeRef = _b.setNodeRef, attributes = _b.attributes, listeners = _b.listeners;
    return (React.createElement("div", __assign({ ref: setNodeRef, className: styles.dragIndicator }, attributes, listeners),
        React.createElement(DragIndicatorIcon, { className: styles.dragIndicatorIcon })));
};
