import { DragDropContext, Droppable, DropResult } from '@hello-pangea/dnd'; import { FieldSet } from '@grafana/ui'; import { t } from 'app/core/internationalization'; import { PlaylistTableRows } from './PlaylistTableRows'; import { PlaylistItem } from './types'; interface Props { items: PlaylistItem[]; deleteItem: (idx: number) => void; moveItem: (src: number, dst: number) => void; } export const PlaylistTable = ({ items, deleteItem, moveItem }: Props) => { const onDragEnd = (d: DropResult) => { if (d.destination) { moveItem(d.source.index, d.destination?.index); } }; return (
{(provided) => { return (
{provided.placeholder}
); }}
); };