<template>
    <div class="">
        <div class="card">
            <div class="d-flex">
                <div v-if="data.item.img">
                    <img class="card-img card-img-left" :src="data.item.img" alt="" style="max-height: 200px; min-width: 200px" />
                </div>
                <div>
                    <div class="card-body">
                        <h5 class="card-title">{{ data.item.title }}</h5>
                        <p class="card-text">
                            {{ data.item.content }}
                        </p>
                        <p class="card-text">
                            <small class="text-muted">{{ data.item.date }}</small>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script setup>
    const data = defineProps(['item']);
</script>
