king
2023-06-25 5025901e459ae49d85210573ad38fb3f3c1d9230
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