adminjs
Version:
Admin panel for apps written in node.js
10 lines (7 loc) • 325 B
text/typescript
import { ActionJSON } from './action-json.interface.js'
export const actionHasDisabledComponent = (action: ActionJSON): boolean => (
typeof action.component !== 'undefined' && action.component === false
)
export const actionHasCustomComponent = (action: ActionJSON): boolean => (
typeof action.component === 'string'
)