File size: 385 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import type { AtomicSoftwareStatus, AtomicSoftwareError } from './actions';
import type { AppState } from 'calypso/types';
import 'calypso/state/atomic/init';

export const getAtomicSoftwareStatus = (
	state: AppState,
	siteId: number,
	softwareSet: string
): { status?: AtomicSoftwareStatus; error?: AtomicSoftwareError } =>
	state?.atomicSoftware?.[ siteId ]?.[ softwareSet ] || {};