UNPKG

@openshift-assisted/ui-lib

Version:

React component library for the Assisted Installer UI

8 lines 606 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.selectInfraEnvByCpuArchitecture = exports.selectInfraEnvsSlice = void 0; const toolkit_1 = require("@reduxjs/toolkit"); const selectInfraEnvsSlice = (state) => state.infraEnvs; exports.selectInfraEnvsSlice = selectInfraEnvsSlice; exports.selectInfraEnvByCpuArchitecture = (0, toolkit_1.createSelector)([exports.selectInfraEnvsSlice, (_, cpuArchitecture) => cpuArchitecture], (infraEnvs, cpuArchitecture) => infraEnvs.find((infraEnv) => infraEnv.cpuArchitecture === cpuArchitecture)); //# sourceMappingURL=selectors.js.map