(keys, items)
| 5 | export function DraggableTreeView() { |
| 6 | let {dragAndDropHooks} = useDragAndDrop<Pokemon>({ |
| 7 | getItems(keys, items) { |
| 8 | return items.map(item => ({ |
| 9 | 'text/plain': `${item.name} – ${item.type}`, |
| 10 | 'text/html': `<strong>${item.name}</strong> – <em>${item.type}</em>`, |
| 11 | pokemon: JSON.stringify(item) |
| 12 | })); |
| 13 | } |
| 14 | }); |
| 15 | |
| 16 | return <PokemonTreeView dragAndDropHooks={dragAndDropHooks} />; |
nothing calls this directly
no outgoing calls
no test coverage detected