21 lines
521 B
TypeScript
21 lines
521 B
TypeScript
import FeedEmptyState from '@/components/feed/FeedEmptyState';
|
|
import FeedItemCard from '@/components/feed/FeedItemCard';
|
|
import type { FeedItemDTO } from '@core/social/application/dto/FeedItemDTO';
|
|
|
|
interface FeedListProps {
|
|
items: FeedItemDTO[];
|
|
}
|
|
|
|
export default function FeedList({ items }: FeedListProps) {
|
|
if (!items.length) {
|
|
return <FeedEmptyState />;
|
|
}
|
|
|
|
return (
|
|
<div className="space-y-4">
|
|
{items.map(item => (
|
|
<FeedItemCard key={item.id} item={item} />
|
|
))}
|
|
</div>
|
|
);
|
|
} |