UNPKG

@wordpress/components

Version:
13 lines • 548 B
import type { ConnectedProps } from './types'; /** * Custom hook that derives registered props from the Context system. * These derived props are then consolidated with incoming component props. * * @param props Incoming props from the component. * @param namespace The namespace to register and to derive context props from. * @return The connected props. */ export declare function useContextSystem<P extends { className?: string; }>(props: P, namespace: string): ConnectedProps<P>; //# sourceMappingURL=use-context-system.d.ts.map