import styled from '@emotion/styled'; import { CompanyChip } from '@/companies/components/CompanyChip'; import { PersonChip } from '@/people/components/PersonChip'; import { getLogoUrlFromDomainName } from '~/utils'; const StyledContainer = styled.div` display: flex; flex-wrap: wrap; gap: ${({ theme }) => theme.spacing(1)}; `; // TODO: fix edges pagination formatting on n+N export const ActivityTargetChips = ({ targets }: { targets?: any }) => { if (!targets) { return null; } return ( {targets?.map(({ company, person }: any) => { if (company) { return ( ); } if (person) { return ( ); } return <>; })} ); };