aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/MessageInput.js
blob: 2a7eab1de4013742ff121f7fe67c6b93e60a631a (plain) (blame)
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
import React from 'react';

import { MessageType } from './Types';

export default class MessageInput extends React.Component {
    constructor(props) {
        super(props)
    }
    render() {
        const msg = this.props.data;
        return (
            <form className="msg-comment-target">
                <input type="hidden" name="mid" value={msg.mid} />
                <div className="msg-comment">
                    <div className="ta-wrapper">
                        <textarea name="body" rows="1" className="reply" placeholder="Write a comment..."></textarea>
                    </div>
                </div>
            </form>
        )
    }
}

MessageInput.propTypes = {
    data: MessageType
};