<template>
  <base-form
    :form="form"
    :meta="meta"
    :schema="schema"
    :isLoading="isLoading"
  >
    <form-group-record-dns-in-sql namespace="record_dns_in_sql"
                                  :column-label="$i18n.t('Record DNS')"
                                  :text="$i18n.t('Record DNS requests and replies in the SQL tables.')"
                                  enabled-value="enabled"
                                  disabled-value="disabled"
    />
  </base-form>
</template>
<script>
import {computed} from '@vue/composition-api'
import {BaseForm} from '@/components/new/'
import schemaFn from '../schema'
import {FormGroupRecordDnsInSql} from './'

const components = {
  BaseForm,

  FormGroupRecordDnsInSql
}

export const props = {
  form: {
    type: Object
  },
  meta: {
    type: Object
  },
  isLoading: {
    type: Boolean,
    default: false
  }
}

export const setup = (props) => {

  const schema = computed(() => schemaFn(props))

  return {
    schema
  }
}

// @vue/component
export default {
  name: 'the-form',
  inheritAttrs: false,
  components,
  props,
  setup
}
</script>

