<script setup lang="ts">
import type { VersionSet } from '../contracts/versionSet'

const props = defineProps<{
  value: VersionSet
  compact?: boolean
}>()
</script>

<template>
  <dl class="version-set" :data-compact="props.compact ? 'true' : 'false'">
    <dt>Dataset</dt><dd>{{ props.value.datasetId }}</dd>
    <dt>Data hash</dt><dd><code>{{ props.value.dataHash }}</code></dd>
    <dt>Model</dt><dd>{{ props.value.modelVersion }}</dd>
    <dt>Config</dt><dd>{{ props.value.configVersion }}</dd>
    <dt>Code</dt><dd><code>{{ props.value.codeSha }}</code></dd>
    <dt>Contract</dt><dd>{{ props.value.contractVersion }}</dd>
  </dl>
</template>
