'use client'; import { FC } from "react"; import { Briefcase } from "lucide-react"; interface Props { item: any; isSelected: boolean; onClickHandler: (item: any) => void; } const RenderOneClientSelection: FC = ({ item, isSelected, onClickHandler }) => { if (isSelected) { return (
{ onClickHandler(item) }} className="w-full text-xs bg-white shadow rounded-lg overflow-hidden transition-all hover:shadow-md mb-2 cursor-pointer">
{item.avatar ? (Company) : (
{(item.public_name || "No Name").slice(0, 2)}
)}

{item.public_name} {item.company_type}

{item.duty}

) } return (
{item.avatar ? (Company) : (
{(item.duty || "No Duty").slice(0, 2)}
)}

{item.public_name} {item.company_type}

{item.duty}

) } export default RenderOneClientSelection;