import metadata from './metadata';
const metadataCollection = function metadataCollection(data) {
  if (!data) {
    return {};
  }
  return Object.fromEntries(data.map(meta => {
    const formattedMeta = metadata(meta);
    return [formattedMeta.id, formattedMeta];
  }));
};
export default metadataCollection;