<template>
  <div>
    <template v-for="extend in UIExtends">
      <component :is="extend"  :preferences="preferences" :key="'key_'+extend"></component>
    </template>
  </div>
</template>

<script>
import SystemPreferencesExtend from '../../platform/components/UserPreferencesExtendAction.vue'
import ContentcorePreferencesExtend from '../../contentcore/components/UserPreferencesExtendAction.vue'
import BlockPreferencesExtend from '../../block/components/UserPreferencesExtendAction.vue'

export default {
  data() {
    return {
      UIExtends: ['system-preference', 'contentcore-preference', 'block-preference']
    }
  },
  components: {
    'system-preference': SystemPreferencesExtend,
    'contentcore-preference': ContentcorePreferencesExtend,
    'block-preference': BlockPreferencesExtend
  },
  props: ['preferences']
}
</script>
