import { Conversation } from "@/types"; import { IconMessage, IconTrash } from "@tabler/icons-react"; import { FC } from "react"; interface Props { loading: boolean; conversations: Conversation[]; selectedConversation: Conversation; onSelectConversation: (conversation: Conversation) => void; onDeleteConversation: (conversation: Conversation) => void; } export const Conversations: FC = ({ loading, conversations, selectedConversation, onSelectConversation, onDeleteConversation }) => { console.log(conversations); return (
{conversations.map((conversation, index) => ( ))}
); };