<template>
    <div class="content-l">
        <h1>Artifacts</h1>
        <ArtifactList v-if="artifacts" :artifacts="artifacts"></ArtifactList>
    </div>
</template>

<script setup lang="ts">
import ArtifactList from "~/components/artifact/ArtifactList.vue";
import {Artifact} from "~/components/artifact/Artifact";

const artifacts: Ref<Artifact[] | undefined> = ref(undefined);

onMounted(() => {
    Artifact.get((_artifacts: Artifact[]) => {
        artifacts.value = _artifacts;
    });
})
</script>

<style scoped>

</style>