import React from 'react'; import Item from './Item'; const CustomFields = ({ customFields }: { customFields?: { [key: string]: string } }) => { if (customFields) { return ( <> {Object.keys(customFields).map((title: string) => { if (!customFields[title]) { return null; } return ; })} ); } return null; }; export default CustomFields;