import { Button } from 'antd'; import dynamic from 'next/dynamic'; import { FC, MutableRefObject } from 'react'; import { ChatMessage } from '../../../interfaces/chat-message.model'; import styles from './ChatContainer.module.scss'; // Lazy loaded components const VerticalAlignBottomOutlined = dynamic( () => import('@ant-design/icons/VerticalAlignBottomOutlined'), { ssr: false, }, ); type Props = { chatContainerRef: MutableRefObject; messages: ChatMessage[]; }; export const ScrollToBotBtn: FC = ({ chatContainerRef, messages }) => (
);