<template>
    <div className="card">        
        <h5>Ks document</h5>
        
    </div>
</template>

<script setup>
import { ref } from 'vue';
import { onMounted } from 'vue'
import axios from 'axios';



const ksdocuments = ref(null);

onMounted(() => {
    axios.get('http://localhost:8082/ksdocuments/'+$route.params.id)
        .then(response => {
            console.log(response.data);
            ksdocuments.value = response.data;
        });
});

const getStatus = (data) => {
    if (data.ingestionStatus === 'INGESTED') {
        return 'success';
    } else if (data.ingestionStatus === 'NEW') {
        return 'danger';
    } else {
        return 'warning';
    }
}
</script>
