import { useCallback, useState } from 'react'; import { ChannelTextarea } from './ChannelTextarea'; import { Messages } from './Messages'; import { TypingUsers } from './TypingUsers'; import styles from './ChannelChatLayout.module.css'; interface ChannelChatLayoutProps { channelId: string; } interface ReplyState { eventId: string; username: string; } export function ChannelChatLayout({ channelId }: ChannelChatLayoutProps) { const [replyTo, setReplyTo] = useState(null); const handleReply = useCallback((eventId: string, username: string) => { setReplyTo({ eventId, username }); }, []); const handleCancelReply = useCallback(() => { setReplyTo(null); }, []); return (
); }