<template>
	<div class="entry-card">
		<div class="entry-card__top">
			<span class="entry-chip">{{ entryKindLabel(entry) }}</span>
		</div>
		<p>{{ stringifyContent(entry.content || entry.data || entry.summary || entry.message?.content) }}</p>
	</div>
</template>

<script lang="ts" setup>
import type { SessionTreeEntry } from '../../types/index.d';

defineProps<{
	entry: SessionTreeEntry;
	entryKindLabel: (entry: SessionTreeEntry) => string;
	stringifyContent: (content: unknown) => string;
}>();

</script>
