withMessageCenterFieldProps Function

HOC that injects values for MessageCenterFieldProps.

withMessageCenterFieldProps<P extends MessageCenterFieldProps, C>(Component: (props: P) => | ReactElement<any, string | JSXElementConstructor<any>> & C & (props: P) => Component<P, any, any> & C): (props: LibraryManagedAttributes<C, Omit<P, "isInFooterMode" | "onOpenWidget" | "openWidget" | "targetRef">>) => Element

Parameter Type Description
Component (props: P) => | ReactElement<any, string | JSXElementConstructor<any>> & C & (props: P) => Component<P, any, any> & C  

Returns - (props: LibraryManagedAttributes<C, Omit<P, "isInFooterMode" | "onOpenWidget" | "openWidget" | "targetRef">>) => Element

Defined in

Last Updated: 11 June, 2024