File size: 474 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { UrlData } from 'calypso/blocks/import/types';
import 'calypso/state/imports/init';
import type { State } from './reducer';

export const isAnalyzing = ( state: State ): boolean => {
	return state.imports.urlAnalyzer.isAnalyzing;
};

export const getUrlData = ( state: State ): UrlData | null => {
	return state.imports.urlAnalyzer.urlData ?? null;
};

export const getAnalyzerError = ( state: State ): Error => {
	return state.imports.urlAnalyzer.analyzerError;
};