import type { Component, Accessor } from 'solid-js'; import { Show, For } from 'solid-js'; import { ListTree } from 'lucide-solid'; import ItemRow from '../ItemRow'; import LazyItem from '../LazyItem'; import type { EstimateItem } from '../../types'; interface UnassignedItemsSectionProps { unassignedItems: EstimateItem[]; isSidebarCollapsed: Accessor; anyDescriptionIsLong: Accessor; selectedIds: string[]; onDrop: (e: DragEvent, scopeId?: string, subScopeId?: string) => void; clearSelection: (e: MouseEvent) => void; updateItem: (id: string, updates: Partial) => void; deleteItem: (id: string) => void; handleDragStart: (e: DragEvent, id: string) => void; duplicateItem: (id: string) => void; toggleSelection: (id: string, isMulti: boolean, isShift: boolean) => void; } export const UnassignedItemsSection: Component = (props) => { return ( 0}>
e.preventDefault()} onDrop={(e) => props.onDrop(e, undefined, undefined)} onClick={props.clearSelection} class="bg-muted/10 border-2 border-dashed border-border rounded-3xl p-6 transition-all hover:bg-muted/20" >

Unassigned Takeoff Items

Drag these items into scopes to begin your estimate.

{props.unassignedItems.length} Items Pending
{/* Sticky Column Headers for Unassigned */}
{(item) => ( 0} onToggleSelection={(id, isMulti, isShift) => props.toggleSelection(id, isMulti, isShift)} hideColumns={props.anyDescriptionIsLong()} /> )}
); };