<template>
    <div>
        <p class="grid-element">{{ persistentVolume.metadata.name }}</p>
        <p class="grid-element">{{ calcAge(persistentVolume.metadata.creationTimestamp) }}</p>
    </div>
</template>

<script setup lang="ts">
import type { PersistentVolume } from '~/classes/PersistentVolume';
import { calcAge } from '~/classes/Pod';

defineProps<{
    persistentVolume: PersistentVolume
}>();
</script>