<template>
  <div class="transaction-list-skeleton tf-container pt-3">
    <div v-for="i in parseInt(count)" :key="i" class="d-flex align-items-center mb-3 p-3 glass-card rounded-xl border border-light-5 text-start">
        <SkeletonBlock width="44px" height="44px" borderRadius="12px" margin="0 16px 0 0" />
        <div class="flex-grow-1">
            <SkeletonBlock width="160px" height="16px" margin="0 0 6px 0" borderRadius="4px" />
            <SkeletonBlock width="100px" height="12px" borderRadius="3px" />
        </div>
        <div class="text-end">
            <SkeletonBlock width="80px" height="18px" margin="0 0 4px auto" borderRadius="4px" />
            <SkeletonBlock width="50px" height="10px" margin="0 0 0 auto" borderRadius="2px" />
        </div>
    </div>
  </div>
</template>

<script setup>
import SkeletonBlock from './SkeletonBlock.vue';

defineProps({
    count: { type: [Number, String], default: 10 }
})
</script>

<style scoped>
.glass-card {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.rounded-xl {
    border-radius: 20px;
}
.border-light-5 {
    border-color: rgba(0, 0, 0, 0.03) !important;
}
:global(.dark-mode) .glass-card {
    background: #1f2228 !important;
}
</style>
