import { usePackingList } from './usePackingListPanel' import type { PackingListPanelProps } from './usePackingListPanel' import { PackingHeader } from './PackingListPanelHeader' import { PackingFilterTabs } from './PackingListPanelFilterTabs' import { PackingList } from './PackingListPanelList' import { BagSidebar } from './PackingListPanelBagSidebar' import { BagModal } from './PackingListPanelBagModal' import { BulkImportModal } from './PackingListPanelImportModal' // Re-exported for tests and external callers that import it from this module. export { itemWeight } from './packingListPanel.helpers' export default function PackingListPanel(props: PackingListPanelProps) { const S = usePackingList(props) const { font, bagTrackingEnabled, bags, showBagModal, showImportModal } = S return (
{/* ── Header ── */} {/* ── Filter-Tabs ── */} {/* ── Liste + Bags Sidebar ── */}
{bagTrackingEnabled && bags.length > 0 && }
{/* ── Bag Modal (mobile + click) ── */} {showBagModal && bagTrackingEnabled && } {/* Bulk Import Modal */} {showImportModal && }
) }