-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathChatInput.jsx
More file actions
43 lines (37 loc) · 853 Bytes
/
ChatInput.jsx
File metadata and controls
43 lines (37 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import styled from 'styled-components';
const InputContainer = styled.div`
display: flex;
padding: 10px;
border-top: 1px solid #ddd;
background-color: #f5f5f5;
`;
const InputField = styled.input`
flex: 1;
padding: 8px;
border: 1px solid #ddd;
border-radius: 15px;
margin-right: 10px;
font-size: 14px;
`;
const SendButton = styled.button`
background-color: #007bff;
color: white;
border: none;
padding: 8px 16px;
border-radius: 15px;
cursor: pointer;
font-size: 14px;
&:hover {
background-color: #0056b3;
}
`;
export default function ChatInput({ onSendMessage }) {
const handleSendMessage = () => {
};
return (
<InputContainer>
<InputField type="text" placeholder="메시지 보내기..." />
<SendButton onClick={handleSendMessage}>send 📩</SendButton>
</InputContainer>
);
}