@aaronhayes/react-use-hubspot-form
Version:
Embed HubSpot forms into your React components using hooks! Works with Create React App, Gatsby and other platforms.
15 lines (14 loc) • 742 B
TypeScript
import React from 'react';
export interface HubspotContextProps {
readonly loaded: boolean;
readonly error: boolean;
}
export declare const HubspotContext: React.Context<HubspotContextProps>;
export declare const useHubspotContext: () => HubspotContextProps;
interface HubspotProviderProps {
readonly async?: boolean;
readonly addToHead?: boolean;
readonly children: React.ReactNode;
}
declare const HubspotProvider: ({ async, addToHead, children }: HubspotProviderProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>;
export default HubspotProvider;