woocommerce/plugins/woocommerce-admin/client/marketing/data-multichannel/selectors.ts

24 lines
465 B
TypeScript

/**
* Internal dependencies
*/
import { State } from './types';
export const getRegisteredChannels = ( state: State ) => {
return state.registeredChannels;
};
export const getRecommendedChannels = ( state: State ) => {
return state.recommendedChannels;
};
/**
* Get campaigns from state.
*/
export const getCampaigns = ( state: State ) => {
return state.campaigns;
};
export const getCampaignTypes = ( state: State ) => {
return state.campaignTypes;
};