import { h, Component } from 'preact'; import PropTypes from 'prop-types'; import { Article } from './article'; import { ChannelRequest } from './channelRequest'; import { RequestManager } from './RequestManager/RequestManager'; import { ChatChannelSettings } from './ChatChannelSettings/ChatChannelSettings'; import { Draw } from './draw'; import { ReportAbuse } from './ReportAbuse'; const smartSvgIcon = (content, d) => ( ); export class Content extends Component { static propTypes = { resource: PropTypes.shape({ data: PropTypes.any, type_of: PropTypes.string.isRequired, handleRequestRejection: PropTypes.func, handleRequestApproval: PropTypes.func, handleJoiningRequest: PropTypes.func, activeMembershipId: PropTypes.func, sendCanvasImage: PropTypes.func, }).isRequired, fullscreen: PropTypes.bool.isRequired, onTriggerContent: PropTypes.func.isRequired, updateRequestCount: PropTypes.func.isRequired, closeReportAbuseForm: PropTypes.func.isRequired, }; render() { const { onTriggerContent, fullscreen, resource, closeReportAbuseForm } = this.props; if (!resource) { return ''; } return (