"use client" import React from 'react' import Link from 'next/link' import '@/app/components/PerChatCard.css' const PerChatCard = ({data, open, setOpen, setData}) => { //console.log(data) const api = data const handleClick = (data)=>{ if (!open){ setData(data) } setOpen(!open) } return (