king
2023-08-10 61063b70a4247e12b81c05ae0295d547d8ef42f1
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