import type { Division, DivisionType } from "../../types/sections"; import { type DivisionMenuItem } from "./DivisionMenu"; import { type EditDraft } from "./types"; interface SectionItemProps { division: Division; depth: number; isActive: boolean; hasChildren: boolean; isExpanded: boolean; onToggleExpand: () => void; editDraft: EditDraft | null; onSelect: () => void; onDraftChange: (draft: EditDraft) => void; onEditCommit: () => void; onEditCancel: () => void; menuItems: DivisionMenuItem[]; /** True while `editDraft` belongs to a division that hasn't been saved yet. */ isNew?: boolean; isRoot?: boolean; /** Type of the division this one is (or would be) nested under; `null` if unplaced. */ parentType?: DivisionType | null; } declare const SectionItem: ({ division, depth, isActive, hasChildren, isExpanded, onToggleExpand, editDraft, onSelect, onDraftChange, onEditCommit, onEditCancel, menuItems, isNew, isRoot, parentType, }: SectionItemProps) => import("react").JSX.Element; export default SectionItem;