<template>
  <div class="l-settings">
    <button
      class="o-button"
      @click="onContentProtectionConfig"
    >
      内容保护配置
    </button>
    <record-config-dialog ref="recordConfigDialog" />
    <content-protection-config-dialog ref="contentProtectionConfigDialog" />
  </div>
</template>

<script>
import ContentProtectionConfigDialog from './ContentProtectionConfigDialog'

export default {
  name: 'DeviceNormalConfig',
  components: {
    ContentProtectionConfigDialog
  },
  props: {
    device: {
      type: Object,
      required: true
    }
  },
  methods: {
    onContentProtectionConfig () {
      this.$refs.contentProtectionConfigDialog.show(this.device)
    }
  }
}
</script>

<style lang="scss" scoped>
.l-settings {
  display: grid;
  grid-template-columns: repeat(auto-fill, 120px);
  grid-row-gap: $spacing;
  grid-column-gap: $spacing;
}
</style>
