feat: wire post interactions and persist favorites state

This commit is contained in:
zetaloop
2026-02-21 15:45:20 +08:00
parent 1ff499720f
commit 3a1f9c2b7f
6 changed files with 158 additions and 52 deletions
+5 -1
View File
@@ -76,7 +76,11 @@ export default async function PlayerDetailPage({ params }: { params: Promise<{ i
</Button>
</Link>
)}
<FavoriteButton initialFavorited={isFavorited} />
<FavoriteButton
initialFavorited={isFavorited}
targetType="player"
targetId={player.id}
/>
</div>
<div className="bg-muted/50 p-4 rounded-lg">