import * as React from 'react' ; import context from '../context' ; import State , { StateProps } from './state' ; export interface PartialProps extends StateProps { } export default ( p ) => ( < context . Consumer > { ctx => < State store = { ctx } { ... p } />}</context . Consumer > ) ;