blob: 32d2498949c469abf7e582815fd27a292ab4e7e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
const sitePlanSelectors = {
getSearchPlanInfo: state => state.sitePlan,
hasBusinessPlan: state => state.sitePlan.supports_only_classic_search,
hasActiveSearchPurchase: state => state.sitePlan.supports_instant_search,
supportsInstantSearch: state => state.sitePlan.supports_instant_search,
supportsOnlyClassicSearch: state => state.sitePlan.supports_only_classic_search,
getUpgradeBillPeriod: state => state.sitePlan?.default_upgrade_bill_period,
supportsSearch: state =>
state.sitePlan.supports_instant_search || state.sitePlan.supports_only_classic_search,
};
export default sitePlanSelectors;
|