import React from 'react'; import GoogleMapsContext from './GoogleMapsContext'; type Subtract = Omit< TProps, keyof TSubstractedProps >; export interface WithGoogleMapsProps { google: typeof google; googleMapsInstance: google.maps.Map; } const withGoogleMaps = ( Wrapped: React.ComponentType ) => { const WithGoogleMaps: React.FC> = ( props ) => ( {({ google, instance }) => ( )} ); return WithGoogleMaps; }; export default withGoogleMaps;