<script setup lang="ts">
import type { CourseResourceType } from '../types'
import CoursePlayerResourceListItem from './CoursePlayerResourceListItem.vue'

defineProps<{
  list: CourseResourceType[]
}>()
</script>

<template>
  <div class="list">
    <template v-if="list.length">
      <CoursePlayerResourceListItem v-for="item in list" :data="item" :key="item.id" />
    </template>
    <el-empty description="暂无数据" v-else />
  </div>
</template>
