7 lines
244 B
TypeScript
7 lines
244 B
TypeScript
import { ChatEvent } from '../../../interfaces/socket-events';
|
|
|
|
export function handleNameChangeEvent(message: ChatEvent, setChatMessages) {
|
|
setChatMessages(currentState => [...currentState, message]);
|
|
}
|
|
export default handleNameChangeEvent;
|