import { MoreOutlined } from '@ant-design/icons'; import { Input, Button } from 'antd'; import { useEffect, useState } from 'react'; import s from './ChatTextField.module.scss'; interface Props {} export default function ChatTextField(props: Props) { const [value, setValue] = useState(''); const [showEmojis, setShowEmojis] = useState(false); // large is 40px const size = 'large'; useEffect(() => { console.log({ value }); }, [value]); return (
setValue(e.target.value)} size={size} placeholder="Enter text and hit enter!" />
); }