import React from 'react'; import PropsEdit from './PropsEdit'; // Assuming the path is correct interface PropertiesTableProps { properties: { [key: string]: any }; // A dictionary structure for the properties isRecommended: boolean; recommendedEvents?: any; // Replace 'any' with the specific type if available eventName: string; setProp: (key: string, value: any) => void; deleteProp: (key: string) => void; } const PropertiesTable: React.FC = ({ properties, isRecommended, recommendedEvents, eventName, setProp, deleteProp, }) => { return (
{Object.entries(properties).map(([key, value]) => ( ))}
Property Value Edit
{Object.keys(properties).length === 0 && (
No Items
)}
); }; export default PropertiesTable;