import { h, Component } from 'preact';
import twitterImage from 'images/twitter-logo.svg';
import githubImage from 'images/github-logo.svg';
import websiteImage from 'images/external-link-logo.svg';
function blockChat(activeChannelId) {
const formData = new FormData();
formData.append('chat_id', activeChannelId);
formData.append('controller', 'chat_channels');
getCsrfToken().then(sendFetch('block-chat', formData));
}
export default class UserDetails extends Component {
render() {
const { user } = this.props;
const channelId = this.props.activeChannelId;
const socialIcons = [];
if (user.twitter_username) {
socialIcons.push(
,
);
}
if (user.github_username) {
socialIcons.push(
,
);
}
if (user.website_url) {
socialIcons.push(
,
);
}
let userLocation = '';
if (user.location && user.location.length > 0) {
userLocation = (