king
2024-05-21 66bdbc1df92e8ec4a5108a4e0323e25a7b9ff8f8
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