Add new hook for production ISU login

This commit is contained in:
Philipp Stracker 2024-12-05 15:05:00 +01:00
parent a8f12c63fa
commit 05c1978f0d
No known key found for this signature in database
3 changed files with 38 additions and 1 deletions

View file

@ -23,3 +23,18 @@ export const transientData = ( state ) => {
export const flags = ( state ) => {
return getState( state ).flags || EMPTY_OBJ;
};
/**
* Returns the products that we use for the production login link in the last onboarding step.
*
* This selector does not return state-values, but uses the state to derive the products-array
* that should be returned.
*
* @param {{}} state
* @return {string[]} The ISU products, based on choices made in the onboarding wizard.
*/
export const determineProducts = ( state ) => {
const derivedProducts = [];
return derivedProducts;
};