import React from 'react'; import classNames from 'classnames'; import { SessionIcon } from './SessionIcon'; export class SessionIconButton extends SessionIcon { constructor(props: any) { super(props); this.clickHandler = this.clickHandler.bind(this); } public render() { return (
{ this.clickHandler(e); }} >
); } private clickHandler(e: any) { if (this.props.onClick) { e.stopPropagation(); this.props.onClick(); } } }