mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-25 04:25:05 +03:00
Implement chat switching animation
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
import { ChatMain } from "./ChatMain";
|
||||
import { useChat } from "../../hooks/useChat";
|
||||
import { ChatInputWrapper } from "./ChatInputWrapper";
|
||||
import { ChatMainHeader } from "./ChatMainHeader";
|
||||
import { ChatMessages } from "./ChatMessages";
|
||||
|
||||
export function RightPanel() {
|
||||
const { isChatSwitching } = useChat();
|
||||
|
||||
return (
|
||||
<div className="chat-container">
|
||||
<ChatMain />
|
||||
<div className={`chat-container ${!isChatSwitching && "chat-switch-in"} chat-switch-out`}>
|
||||
<div className="chat-main" id="chat-inner">
|
||||
<ChatMainHeader />
|
||||
<ChatMessages />
|
||||
<ChatInputWrapper />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user