<script>
import { markRaw } from 'vue'

import DefaultModal from '@inside-library/components/modals/default/DefaultModal'
import FullArticle from '../articles/FullArticle'

export default {
  name: 'ArticlesModal',
  components: { FullArticle },
  extends: DefaultModal,
  methods: {
    scaffoldOverrides(data, { deleteItems }) {
      deleteItems('actions')
    },
    scaffold() {
      return {
        sections: [
          {
            fields: [
              {
                tag: markRaw(FullArticle),
                data: {
                  uuid: this.heritedData.uuid
                }
              }
            ]
          }
        ]
      }
    }
  }
}
</script>
