logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

component_utils.js (277B)


  1. import isFunction from 'lodash/isFunction'
  2. const getComponentOptions = (Component) => (isFunction(Component)) ? Component.options : Component
  3. const getComponentProps = (Component) => getComponentOptions(Component).props
  4. export {
  5. getComponentOptions,
  6. getComponentProps
  7. }