import * as q from '../../../../../backend/src/Model' ; import CustomIconButton from '../../helper/CustomIconButton' ; import Delete from '@material-ui/icons/Delete' ; import React from 'react' ; export const TopicDeleteButton = ( props ) => { const { node } = props ; if ( ! node || ! node . message || ! node . message . payload ) { return null ; } return ( < CustomIconButton onClick = { ( ) => props . deleteTopicAction ( node ) } tooltip = "Clear this topic" > < Delete /> < /CustomIconButton>); } ;