import React, { ComponentType } from 'react'; import withFillColor from './utils/withFillColor'; import withAction from './utils/withAction'; import { ButtonProps } from '../../types'; const ImageAlignCenter: ComponentType = ({ fill }) => { return ( ); }; // export default withAction(ImageAlignCenter) export default withFillColor(withAction(ImageAlignCenter)); // interface FooProps { // foo: string; // } // interface BarProps { // bar: string; // } // export const withFoo = ( // Component: React.ComponentType // ): React.ComponentType> => props => ( // // ); // export const withBar = ( // Component: React.ComponentType // ): React.ComponentType> => props => ( // // ); // const WrappedComponent = ({ bar, foo, more }) => { // console.log(more); // console.log(bar); // console.log(foo); // return
woohoo
; // }; // const EnhancedComponent = withFoo(withBar(WrappedComponent));