import type { PackingState } from './usePackingListPanel' import { KategorieGruppe } from './PackingListPanelCategoryGroup' import EmptyState from '../shared/EmptyState' export function PackingList(S: PackingState) { const { items, gruppiert, t, tripId, allCategories, handleRenameCategory, handleDeleteCategory, handleDeleteItem, handleAddItemToCategory, categoryAssignees, tripMembers, handleSetAssignees, bagTrackingEnabled, bags, handleCreateBagByName, canEdit, reorderPackingItems, currentUserId, handleSetSharing, handleCloneItem, handleJoinItem, handleLeaveItem, } = S return (
{items.length === 0 ? ( ) : Object.keys(gruppiert).length === 0 ? (

{t('packing.emptyFiltered')}

) : (
{Object.entries(gruppiert).map(([kat, katItems]) => ( reorderPackingItems(tripId, orderedIds)} currentUserId={currentUserId} onSetSharing={handleSetSharing} onClone={handleCloneItem} onJoin={handleJoinItem} onLeave={handleLeaveItem} /> ))}
)}
) }