king
2025-02-12 c8c8bdf0c362ca76253d8e0cbb0dbaa13efad4a3
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