import React from "react"; import { motion } from "framer-motion"; function SelectedContacts({ contacts, removeContact }) { return ( !!contacts.length && (
{contacts.map((contact) => ( removeContact(contact._id)} className="flex items-center bg-secondary-light-text pr-[1.5rem] gap-[1.5rem] rounded-full cursor-default" > {/* Avatar */} {contact.name} {contact.name} ))}
) ); } export default SelectedContacts;