aboutsummaryrefslogblamecommitdiffstats
path: root/packages/instant/src/components/zero_ex_instant.tsx
blob: e9cb48e61a4ea677e58f82908efa25ae1cb9d306 (plain) (tree)
1
2
3
4
5
6
7
8
9
                               
 
                                                                                 
 

                                                  
                                                                                               
 
                                                            
 

                                                                                     

                                              
                                          

                                    

      

                                            
import * as React from 'react';

import { ZeroExInstantContainer } from '../components/zero_ex_instant_container';

import { INJECTED_DIV_CLASS } from '../constants';

import { ZeroExInstantProvider, ZeroExInstantProviderProps } from './zero_ex_instant_provider';

export type ZeroExInstantProps = ZeroExInstantProviderProps;

export const ZeroExInstant: React.StatelessComponent<ZeroExInstantProps> = props => {
    return (
        <div className={INJECTED_DIV_CLASS}>
            <ZeroExInstantProvider {...props}>
                <ZeroExInstantContainer />
            </ZeroExInstantProvider>
        </div>
    );
};

ZeroExInstant.displayName = 'ZeroExInstant';