import Link from "next/link"; import Image from "next/image"; import { Chat } from "@/types/chat"; const chatData: Chat[] = [ { avatar: "/images/user/user-01.png", name: "Devid Heilo", text: "How are you?", time: 12, textCount: 3, dot: 3, }, { avatar: "/images/user/user-02.png", name: "Henry Fisher", text: "Waiting for you!", time: 12, textCount: 0, dot: 1, }, { avatar: "/images/user/user-04.png", name: "Jhon Doe", text: "What's up?", time: 32, textCount: 0, dot: 3, }, { avatar: "/images/user/user-05.png", name: "Jane Doe", text: "Great", time: 32, textCount: 2, dot: 6, }, { avatar: "/images/user/user-01.png", name: "Jhon Doe", text: "How are you?", time: 32, textCount: 0, dot: 3, }, { avatar: "/images/user/user-03.png", name: "Jhon Doe", text: "How are you?", time: 32, textCount: 3, dot: 6, }, ]; const ChatCard = () => { return (

Chats

{chatData.map((chat, key) => (
User
{chat.name}

{chat.text} . {chat.time} min

{chat.textCount !== 0 && (
{" "} {chat.textCount}
)}
))}
); }; export default ChatCard;