UNPKG

@chayns-components/person-finder

Version:

A set of beautiful React components for developing your own applications with chayns.

16 lines 542 B
import { PersonFinderFilterTypes } from '../types/personFinder'; export const convertSiteEntry = entries => entries.map(entry => ({ id: entry.siteId, name: entry.name, url: `https://${entry.domain}`, type: PersonFinderFilterTypes.SITE })); export const convertPersonEntry = entries => entries.map(entry => ({ id: entry.personId, firstName: entry.firstName, lastName: entry.lastName, commonSites: entry.relationCount, isVerified: entry.verified, type: PersonFinderFilterTypes.PERSON })); //# sourceMappingURL=convert.js.map