import { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { Icon } from 'flavours/glitch/components/icon'; import { removePictureInPicture } from 'flavours/glitch/actions/picture_in_picture'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; class PictureInPicturePlaceholder extends PureComponent { static propTypes = { dispatch: PropTypes.func.isRequired, }; handleClick = () => { const { dispatch } = this.props; dispatch(removePictureInPicture()); }; render () { return (