@@ -10,6 +10,7 @@ import {
1010
1111import RegularFeatureViewCustomTabLoadingWrapper from "../utils/custom-tabs/RegularFeatureViewCustomTabLoadingWrapper" ;
1212import OnDemandFeatureViewCustomTabLoadingWrapper from "../utils/custom-tabs/OnDemandFeatureViewCustomTabLoadingWrapper" ;
13+ import StreamFeatureViewCustomTabLoadingWrapper from "../utils/custom-tabs/StreamFeatureViewCustomTabLoadingWrapper" ;
1314import FeatureServiceCustomTabLoadingWrapper from "../utils/custom-tabs/FeatureServiceCustomTabLoadingWrapper" ;
1415import FeatureCustomTabLoadingWrapper from "../utils/custom-tabs/FeatureCustomTabLoadingWrapper" ;
1516import DataSourceCustomTabLoadingWrapper from "../utils/custom-tabs/DataSourceCustomTabLoadingWrapper" ;
@@ -19,6 +20,7 @@ import DatasetCustomTabLoadingWrapper from "../utils/custom-tabs/DatasetCustomTa
1920import {
2021 RegularFeatureViewCustomTabRegistrationInterface ,
2122 OnDemandFeatureViewCustomTabRegistrationInterface ,
23+ StreamFeatureViewCustomTabRegistrationInterface ,
2224 FeatureServiceCustomTabRegistrationInterface ,
2325 FeatureCustomTabRegistrationInterface ,
2426 DataSourceCustomTabRegistrationInterface ,
@@ -30,6 +32,7 @@ import {
3032interface FeastTabsRegistryInterface {
3133 RegularFeatureViewCustomTabs ?: RegularFeatureViewCustomTabRegistrationInterface [ ] ;
3234 OnDemandFeatureViewCustomTabs ?: OnDemandFeatureViewCustomTabRegistrationInterface [ ] ;
35+ StreamFeatureViewCustomTabs ?: StreamFeatureViewCustomTabRegistrationInterface [ ] ;
3336 FeatureServiceCustomTabs ?: FeatureServiceCustomTabRegistrationInterface [ ] ;
3437 FeatureCustomTabs ?: FeatureCustomTabRegistrationInterface [ ] ;
3538 DataSourceCustomTabs ?: DataSourceCustomTabRegistrationInterface [ ] ;
@@ -148,6 +151,16 @@ const useOnDemandFeatureViewCustomTabs = (navigate: NavigateFunction) => {
148151 ) ;
149152} ;
150153
154+ const useStreamFeatureViewCustomTabs = ( navigate : NavigateFunction ) => {
155+ const { StreamFeatureViewCustomTabs } =
156+ React . useContext ( TabsRegistryContext ) ;
157+
158+ return useGenericCustomTabsNavigation < StreamFeatureViewCustomTabRegistrationInterface > (
159+ StreamFeatureViewCustomTabs || [ ] ,
160+ navigate
161+ ) ;
162+ } ;
163+
151164const useFeatureServiceCustomTabs = ( navigate : NavigateFunction ) => {
152165 const { FeatureServiceCustomTabs } = React . useContext ( TabsRegistryContext ) ;
153166
@@ -214,6 +227,16 @@ const useOnDemandFeatureViewCustomTabRoutes = () => {
214227 ) ;
215228} ;
216229
230+ const useStreamFeatureViewCustomTabRoutes = ( ) => {
231+ const { StreamFeatureViewCustomTabs } =
232+ React . useContext ( TabsRegistryContext ) ;
233+
234+ return genericCustomTabRoutes (
235+ StreamFeatureViewCustomTabs || [ ] ,
236+ StreamFeatureViewCustomTabLoadingWrapper
237+ ) ;
238+ } ;
239+
217240const useFeatureServiceCustomTabRoutes = ( ) => {
218241 const { FeatureServiceCustomTabs } = React . useContext ( TabsRegistryContext ) ;
219242
@@ -264,6 +287,7 @@ export {
264287 // Navigation
265288 useRegularFeatureViewCustomTabs ,
266289 useOnDemandFeatureViewCustomTabs ,
290+ useStreamFeatureViewCustomTabs ,
267291 useFeatureServiceCustomTabs ,
268292 useFeatureCustomTabs ,
269293 useDataSourceCustomTabs ,
@@ -272,6 +296,7 @@ export {
272296 // Routes
273297 useRegularFeatureViewCustomTabRoutes ,
274298 useOnDemandFeatureViewCustomTabRoutes ,
299+ useStreamFeatureViewCustomTabRoutes ,
275300 useFeatureServiceCustomTabRoutes ,
276301 useFeatureCustomTabRoutes ,
277302 useDataSourceCustomTabRoutes ,
0 commit comments