UNPKG

piral-hooks-utils

Version:

Hooks and HOC for pilets and Piral instances.

16 lines (15 loc) 454 B
import * as React from 'react'; interface BaseComponentProps { /** * The currently used pilet API. */ piral: any; } /** * Wraps the component in a Pilet API provider allowing to make use of * the `usePilet` hook. * @param Component The component that should be wrapped in a provider. * @returns The wrapped component. */ export declare function withPiletApi<T>(Component: React.FC<T>): React.FC<T & BaseComponentProps>; export {};