king
2023-06-15 a29d9d644a2a30e9ef4afcc6d728c20c218dc359
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import React from 'react'
import { useDrag } from 'react-dnd'
 
import MkIcon from '@/components/mk-icon'
import './index.scss'
 
const SourceElement = ({content}) => {
  const [, drag] = useDrag({ item: content })
  return (
    <div ref={drag} className="print-source-item">
      {content.label}
      <MkIcon type={content.icon} />
    </div>
  )
}
export default SourceElement