<template>
  <v-simple-table>
    <template v-slot:default>
      <thead>
        <tr>
          <th class="text-left">Height</th>
          <th class="text-left">Block Signer</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="block in latestBlocks" :key="block.height">
          <td>{{ parseInt(block.height, 16) }}</td>
          <td>{{ block.signer }}</td>
        </tr>
      </tbody>
    </template>
  </v-simple-table>
</template>

<script>
export default {
  props: {
    latestBlocks: Array,
  },
}
</script>
