import * as React from "react"; import { Dispatch } from "redux"; import { BaseBorders2Props } from "./borders.pc"; import { PCVariable, ComputedStyleInfo } from "paperclip"; import { cssPropertyChanged, cssPropertyChangeCompleted } from "../../../../../../../actions"; export type Props = { dispatch: Dispatch; documentColors: string[]; globalVariables: PCVariable[]; computedStyleInfo: ComputedStyleInfo; }; export default (Base: React.ComponentClass) => class Borders2Controller extends React.PureComponent { onPropertyChange = (name, value) => { this.props.dispatch(cssPropertyChanged(name, value)); }; onPropertyChangeComplete = (name, value) => { this.props.dispatch(cssPropertyChangeCompleted(name, value)); }; render() { const { onPropertyChange, onPropertyChangeComplete } = this; const { documentColors, globalVariables, computedStyleInfo, ...rest } = this.props; return ( ); } };