()
| 5 | } from '../components/GrowthBookProvider'; |
| 6 | |
| 7 | export const useJobsFeature = (): { |
| 8 | isJobsEnabled: boolean; |
| 9 | isLoading: boolean; |
| 10 | } => { |
| 11 | const value = useFeature(featureJobsUI); |
| 12 | const { ready } = useFeaturesReadyContext(); |
| 13 | const isLoading = !ready; |
| 14 | |
| 15 | return { |
| 16 | // Keep this as the resolved flag value. Route gates can choose to render |
| 17 | // optimistically while `isLoading`; passive UI should treat unknown as off. |
| 18 | isJobsEnabled: !!value, |
| 19 | isLoading, |
| 20 | }; |
| 21 | }; |
no test coverage detected