Showing
1 changed file
with
13 additions
and
0 deletions
web/src/components/room/ChatLine.tsx
0 → 100644
| 1 | +import React from 'react'; | ||
| 2 | +import { ChatData } from './types'; | ||
| 3 | + | ||
| 4 | +interface ChatLineProps { | ||
| 5 | + chatData: ChatData; | ||
| 6 | +} | ||
| 7 | + | ||
| 8 | +export const ChatLine: React.FC<ChatLineProps> = ({ chatData }) => { | ||
| 9 | + return ( | ||
| 10 | + <div className='w-5/6 px-3 py-2 bg-white | ||
| 11 | + text-gray-700 text-sm'>{chatData.sender} : {chatData.message}</div> | ||
| 12 | + ); | ||
| 13 | +} |
-
Please register or login to post a comment