<template>
  <oh-card :context="context" :content-class="['display-flex', 'justify-content-center']">
    <template #content>
      <oh-colorpicker :context="context" @command="onCommand" />
    </template>
  </oh-card>
</template>

<script>
import mixin from '../widget-mixin'
import OhCard from '@/components/widgets/standard/oh-card.vue'
import OhColorpicker from '../system/oh-colorpicker.vue'
import { OhColorpickerCardDefinition } from '@/assets/definitions/widgets/standard/cards'

export default {
  mixins: [mixin],
  components: {
    OhCard,
    OhColorpicker
  },
  widget: OhColorpickerCardDefinition,
  data () {
    return {
      value: Math.random()
    }
  }
}
</script>
