// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
const PostAttachmentList = require('./post_attachment_list.jsx');
const PostAttachmentOEmbed = require('./post_attachment_oembed.jsx');
export default class PostBodyAdditionalContent extends React.Component {
constructor(props) {
super(props);
this.getSlackAttachment = this.getSlackAttachment.bind(this);
this.getOembedAttachment = this.getOembedAttachment.bind(this);
this.getComponent = this.getComponent.bind(this);
}
componentWillMount() {
this.setState({type: this.props.post.type, shouldRender: Boolean(this.props.post.type)});
}
getSlackAttachment() {
const attachments = this.props.post.props && this.props.post.props.attachments || [];
return (