king
2023-09-19 38348b249c453425c61ab73a3949113421fc5cf1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import React from 'react'
import { useDrag } from 'react-dnd'
// import './index.scss'
 
const SourceCell = ({item}) => {
  const [, drag] = useDrag({ item })
 
  return (
    <div className="element-source-item">
      <div ref={drag} className="property"><span>{item.text}</span></div>
    </div>
  )
}
export default SourceCell