import React from 'react'; interface Item { id: string; name: string; } interface StructureColumnProps { title: string; items: Item[]; selectedId: string | null; onSelect: (id: string) => void; onAdd: () => void; onEdit: (item: Item) => void; onDelete: (id: string) => void; disabled?: boolean; } const StructureColumn: React.FC = ({ title, items, selectedId, onSelect, onAdd, onEdit, onDelete, disabled = false, }) => { return (

{title}

{items.length > 0 ? (
    {items.map((item) => (
  • onSelect(item.id)} > {item.name}
  • ))}
) : (

Tidak ada {title.toLowerCase()} ditemukan.

{!disabled && ( )}
)}
); }; export default StructureColumn;