mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 00:51:17 +00:00
18 lines
413 B
Handlebars
18 lines
413 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;
|