Recipe List Material used in this menu's brewing process. { // snap data = move(data as any, e as any); // }} > {#each table.getHeaderGroups() as headerGroup (headerGroup.id)} {#each headerGroup.headers as header (header.id)} {#if !header.isPlaceholder} {/if} {/each} {/each} {#if table.getRowModel().rows?.length} {#each table.getRowModel().rows as row, index (row.id)} {@render DraggableRow({ row, index })} {/each} {:else} Empty recipe. {/if} {#snippet DraggableRow({ row, index }: { row: Row; index: number })} {@const { ref, isDragging, handleRef } = useSortable({ id: row.original.id, index: () => index })} {#each row.getVisibleCells() as cell (cell.id)} {/each} {/snippet} {#snippet DragHandle({ attach }: { attach: Attachment })} {/snippet}