feat: one VideoCard for all

This commit is contained in:
shinya
2025-07-09 00:26:52 +08:00
parent 7af32201ab
commit 292a761256
6 changed files with 269 additions and 445 deletions

View File

@@ -13,7 +13,6 @@ import {
} from '@/lib/db.client';
import { SearchResult } from '@/lib/types';
import AggregateCard from '@/components/AggregateCard';
import PageLayout from '@/components/PageLayout';
import VideoCard from '@/components/VideoCard';
@@ -186,7 +185,15 @@ function SearchPageClient() {
? aggregatedResults.map(([mapKey, group]) => {
return (
<div key={`agg-${mapKey}`} className='w-full'>
<AggregateCard items={group} year={group[0].year} />
<VideoCard
id={group[0].id}
source={group[0].source}
title={group[0].title}
poster={group[0].poster}
source_name={group[0].source_name}
year={group[0].year}
items={group}
/>
</div>
);
})