@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
12 lines (10 loc) • 384 B
text/typescript
import { usePostOnboardingHubState } from "./usePostOnboardingHubState";
/**
*
* @returns a boolean representing whether all the post onboarding actions have
* been completed.
*/
export function useAllPostOnboardingActionsCompleted(): boolean {
const { actionsState } = usePostOnboardingHubState();
return actionsState.every(action => action.completed || action.disabled);
}