mirror of
https://github.com/strapi/strapi.git
synced 2025-07-29 11:58:29 +00:00

As a result of taking a look on PR #1967 I realized there is 819 executable files in this repository. It is obvious this is an error.
26 lines
538 B
Handlebars
26 lines
538 B
Handlebars
import { createSelector } from 'reselect';
|
|
|
|
/**
|
|
* Direct selector to the {{ camelCase name }} state domain
|
|
*/
|
|
const select{{ properCase name }}Domain = () => (state) => state.get('{{ camelCase name }}');
|
|
|
|
/**
|
|
* Other specific selectors
|
|
*/
|
|
|
|
|
|
/**
|
|
* Default selector used by {{ properCase name }}
|
|
*/
|
|
|
|
const makeSelect{{ properCase name }} = () => createSelector(
|
|
select{{ properCase name }}Domain(),
|
|
(substate) => substate.toJS()
|
|
);
|
|
|
|
export default makeSelect{{ properCase name }};
|
|
export {
|
|
select{{ properCase name }}Domain,
|
|
};
|