RoundInfo.tsx
487 Bytes
import React from 'react';
import SocketContext from '../../contexts/SocketContext';
import { RoundData } from './types';
interface RoundInfoProps {
round: number;
wordChosen: string;
}
export const RoundInfo: React.FC<RoundInfoProps> = ({ round, wordChosen }) => {
return (
<div className='p-3 m-3 h-14 rounded shadow flex items-center place-content-between'>
<div>대충 타이머 위치</div>
<div>{wordChosen}</div>
<div>R{round}</div>
</div>
);
}