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 <Item label={title} content={customFields[title]} />;
})}
</>
);
};
export default CustomFields;