import clsx from 'clsx'; import type { FunctionComponent } from 'react'; import React from 'react'; import { SelectedRecipientItem } from './SelectedRecipientItem'; import styles from './styles.scss'; type SelectedRecipientsProps = { onRemove: (...args: any[]) => any; recipient?: { phoneNumber: string; name?: string; }; recipients: { phoneNumber: string; name?: string; }[]; multiple: boolean; className?: string; }; export const SelectedRecipients: FunctionComponent = ({ recipient, recipients, multiple, onRemove, className, }) => { if (multiple && recipients.length) { return ( ); } if (!multiple && recipient) { return ( ); } return null; };