<!--
  Copyright (c) 2024 Rackslab

  This file is part of Slurm-web.

  SPDX-License-Identifier: MIT
-->

<script setup lang="ts">
import type { SlurmJobExitCode } from '@/composables/gateway/slurm/types'

const { exit_code } = defineProps<{ exit_code: SlurmJobExitCode }>()
</script>

<template>
  <dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0 dark:text-gray-300">
    {{ exit_code.status[0] }} ({{ exit_code.return_code.number }})
  </dd>
</template>
