import React from "react"; export default class WindowResizeControl extends React.PureComponent { getMaximizingIcon() { return ( ); } getMinimizingIcon() { return ( ); } render() { const { type, onClick } = this.props; let icon = null; switch (type) { case "minimizing": icon = this.getMinimizingIcon(); break; case "maximizing": icon = this.getMaximizingIcon(); break; } return (
{icon}
); } }