File size: 447 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { DIFM_FLOW, DIFM_FLOW_STORE, WEBSITE_DESIGN_SERVICES } from '@automattic/onboarding';

// We want to give the Help Center custom options based on the flow in which the user is in
export function useFlowCustomOptions( flowName: string ) {
	if (
		flowName === DIFM_FLOW ||
		flowName === DIFM_FLOW_STORE ||
		flowName === WEBSITE_DESIGN_SERVICES
	) {
		return {
			hideBackButton: true,
			hasPremiumSupport: true,
		};
	}

	return null;
}