[Client Step 1.8] change src/components/ChatsListScreen/ChatsList.tsx
Martinfer40 opened this issue · comments
5244028920848813936_play.mp4_logo_US.mp4
import React from 'react';
import { chats } from '../../db';
const ChatsList: React.FC = () => (
<div>
<ul>
{chats.map((chat) => (
<li key={chat.id}>
<img src={chat.picture} alt="Profile" />
<div>{chat.name}</div>
</li>
))}
</ul>
</div>
);
export default ChatsList;