2021-07-21 20:08:17 +02:00
|
|
|
import { initialState } from './reducer';
|
2021-07-22 14:10:54 +02:00
|
|
|
{{#unless plugin "===" "admin"}}
|
|
|
|
import pluginId from '../../pluginId'
|
|
|
|
{{/unless}}
|
2021-07-21 20:08:17 +02:00
|
|
|
|
|
|
|
/**
|
2021-07-22 14:10:54 +02:00
|
|
|
* Direct selector to the {{name}} state domain
|
2021-07-21 20:08:17 +02:00
|
|
|
*/
|
|
|
|
|
2021-07-23 12:32:58 +02:00
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
2021-07-22 14:10:54 +02:00
|
|
|
export const select{{name}}Domain = state => state[`
|
|
|
|
{{~#if plugin "===" "admin"~}}
|
|
|
|
{{plugin}}
|
|
|
|
{{~else~}}
|
|
|
|
${pluginId}
|
|
|
|
{{~/if~}}
|
|
|
|
_{{camelCase name}}`] || initialState;
|