import _isEmpty from 'lodash/isEmpty' import _map from 'lodash/map' import React from 'react' export const Influancers = (props: IInfluancersProps) => { const { data, classNamePrefix, headerNode = ( <> TOP  INFLUANCERS ), } = props return (
{!_isEmpty(data) && (
{headerNode}
)}
{_map(data, (influencer, index) => (
{index + 1} INFLUENCER {influencer.name}
))}
) }