@@ -912,3 +912,44 @@ export const ConnectReportingChart = ({
912912
913913 return wrapper ;
914914} ;
915+
916+ export const ConnectInstantPayoutsPromotion = ( {
917+ onInstantPayoutsPromotionLoaded,
918+ onInstantPayoutCreated,
919+ onLoadError,
920+ onLoaderStart,
921+ } : {
922+ onInstantPayoutsPromotionLoaded ?: ( {
923+ promotionShown,
924+ } : {
925+ promotionShown : boolean ;
926+ } ) => void ;
927+ onInstantPayoutCreated ?: ( { payoutId} : { payoutId : string } ) => void ;
928+ } & CommonComponentProps ) : JSX . Element => {
929+ const { wrapper, component : instantPayoutsPromotion } = useCreateComponent (
930+ 'instant-payouts-promotion'
931+ ) ;
932+
933+ useUpdateWithSetter ( instantPayoutsPromotion , onLoaderStart , ( comp , val ) => {
934+ comp . setOnLoaderStart ( val ) ;
935+ } ) ;
936+ useUpdateWithSetter ( instantPayoutsPromotion , onLoadError , ( comp , val ) => {
937+ comp . setOnLoadError ( val ) ;
938+ } ) ;
939+ useUpdateWithSetter (
940+ instantPayoutsPromotion ,
941+ onInstantPayoutsPromotionLoaded ,
942+ ( comp , val ) => {
943+ comp . setOnInstantPayoutsPromotionLoaded ( val ) ;
944+ }
945+ ) ;
946+ useUpdateWithSetter (
947+ instantPayoutsPromotion ,
948+ onInstantPayoutCreated ,
949+ ( comp , val ) => {
950+ comp . setOnInstantPayoutCreated ( val ) ;
951+ }
952+ ) ;
953+
954+ return wrapper ;
955+ } ;
0 commit comments