owncast/web/components/stores/eventhandlers/handleNameChangeEvent.tsx

6 lines
206 B
TypeScript
Raw Normal View History

import { ChatEvent } from '../../../interfaces/socket-events';
export function handleNameChangeEvent(message: ChatEvent, setChatMessages) {
setChatMessages(currentState => [...currentState, message]);
}