import React, { Fragment } from 'react'; import { normalizeWhois } from '../../../helpers/helpers'; import { WHOIS_ICONS } from '../../../helpers/constants'; const getFormattedWhois = (value, t) => { const whoisInfo = normalizeWhois(value); const whoisKeys = Object.keys(whoisInfo); if (whoisKeys.length > 0) { return whoisKeys.map((key) => { const icon = WHOIS_ICONS[key]; return (
{icon && (   )} {whoisInfo[key]}
); }); } return '–'; }; const whoisCell = (t) => function cell(row) { const { value } = row; return
{getFormattedWhois(value, t)}
; }; export default whoisCell;