import React, { useState } from'react'; import { useDrag, useDrop } from'react-dnd'; import { ItemTypes } from './ItemTypes'; const style = { border: '1px solid gray', padding: '0.5rem 1rem', marginBottom: '.5rem', backgroundColor: 'white', cursor:'move', }; const = ({ id, text, moveElement }) { => [{ isDragging }, const] = useDrag{ element: { type: ItemTypes.ELEMENT, id text }, collect: (monitor) => ({ isDragging: monitor.Dragging-dnd) }); import { useDrag, useDrop } from'react-dnd'; import { ItemTypes } from './I
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence