You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
382 B
JavaScript
23 lines
382 B
JavaScript
|
|
import { Input, Button } from 'antd';
|
|
|
|
function InputBox({ onSend }) {
|
|
|
|
function handleSend() {
|
|
// Logic to get message and call onSend
|
|
}
|
|
|
|
return (
|
|
<div>
|
|
<Input.Search
|
|
placeholder="Type message here"
|
|
enterButton="Send"
|
|
size="large"
|
|
onSearch={handleSend}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default InputBox;
|