EditSubBlocks.tsx 356 B

123456789101112131415161718
  1. import { useState } from 'react'
  2. import { SortableList } from '../../sortable'
  3. const EditSubBlocks = ({
  4. name,
  5. value,
  6. onChange
  7. }: {
  8. name: string
  9. value: any
  10. onChange: GenericEventHandler
  11. }) => {
  12. const [state, setState] = useState([1, 2, 3])
  13. return <SortableList items={state} useDragHandle lockAxis={'y'} />
  14. }
  15. export default EditSubBlocks