import * as React from "react"; import { cssPropertyChanged, cssPropertyChangeCompleted } from "../../../../../../../actions"; import { Dispatch } from "redux"; import { SyntheticElement, ComputedStyleInfo } from "paperclip"; import { BaseOpacityPaneProps } from "./opacity.pc"; export type Props = { dispatch: Dispatch; computedStyleInfo: ComputedStyleInfo; }; export default (Base: React.ComponentClass) => class OpacityController extends React.PureComponent { onChange = value => { this.props.dispatch(cssPropertyChanged("opacity", value)); }; onChangeComplete = value => { this.props.dispatch(cssPropertyChangeCompleted("opacity", value)); }; render() { const { onChange, onChangeComplete } = this; const { computedStyleInfo } = this.props; return ( ); } };