<script>
import StudentsScorePassPercent from './StudentsScorePassPercent.vue'
import ExamStudentTimesTower from './ExamStudentTimesTower.vue'
import ExamDurationTower from './ExamDurationTower.vue'
// import StudentsMistakesTypePercent from './StudentsMistakesTypePercent.vue'
import ExamDetailsLayout from './ExamDetailsLayout.vue'

const components = [
  { StudentsScorePassPercent, ExamStudentTimesTower, ExamDurationTower },
  { ExamDetailsLayout }
]

export default {
  components: { ...components[0], ...components[1] },

  render (h) {
    const childs = []
    for (const key in components[this.$store.statistic_tab_active]) childs.push(h(key))
    return h('div', childs)
  }
}
</script>
