File size: 412 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import { useQuery } from './use-query';
export function useSimplifiedOnboarding() {
const hasPlaygroundId = useQuery().has( 'playground' );
return [ false, ! hasPlaygroundId ];
}
export async function isSimplifiedOnboarding() {
const params = new URLSearchParams( window.location.search );
const hasPlaygroundId = params.has( 'playground' );
if ( hasPlaygroundId ) {
return false;
}
return true;
}
|