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