<template>
	<div class="entry-card entry-card--summary">
		<div class="entry-card__top">
			<span class="entry-chip">分支摘要</span>
		</div>
		<div class="node-meta-row">
			<span class="node-meta-pill">来源 {{ branchSourceLabel(entry) }}</span>
		</div>
		<p>{{ branchSummaryText(entry) }}</p>
	</div>
</template>

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

defineProps<{
	entry: SessionTreeEntry;
	branchSourceLabel: (entry: SessionTreeEntry) => string;
	branchSummaryText: (entry: SessionTreeEntry) => string;
}>();
</script>
