mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 17:10:08 +00:00
18 lines
421 B
Handlebars
18 lines
421 B
Handlebars
import { initialState } from './reducer';
|
|
{{#unless plugin "===" "admin"}}
|
|
import pluginId from '../../pluginId'
|
|
{{/unless}}
|
|
|
|
/**
|
|
* Direct selector to the {{ name }} state domain
|
|
*/
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export const select{{ name }}Domain = state => state[`
|
|
{{~#if plugin "===" "admin"~}}
|
|
{{ plugin }}
|
|
{{~else~}}
|
|
${pluginId}
|
|
{{~/if~}}
|
|
_{{ camelCase name }}`] || initialState;
|