<template>
  <el-table :data="rows" border>
    <el-table-column v-for="h in headers" :key="h" :prop="h" :label="h" />
  </el-table>
</template>

<script setup lang="ts">
  defineProps<{
    headers: string[];
    rows: Record<string, string>[];
  }>();
</script>
