UNPKG

adminjs

Version:
10 lines (7 loc) 325 B
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' )