File size: 641 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import type { State } from './reducers';
import type { ImportJob } from './types';
export const getState = ( state: State ) => state.subscriber;
export const getHydrationStatus = ( state: State ) => state.subscriber.hydrated;
export const getAddSubscribersSelector = ( state: State ) => state.subscriber.add;
export const getImportSubscribersSelector = ( state: State ) => state.subscriber.import;
export const getImportJobsSelector = ( state: State ) => state.subscriber.imports;
export function getLatestImportJobSelector( state: State ): ImportJob | undefined {
const imports = state.subscriber?.imports || [];
return imports[ 0 ];
}
|