All files / src/components/pages/message/message-following-list index.tsx

100% Statements 26/26
100% Branches 2/2
100% Functions 1/1
100% Lines 26/26

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 271x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 3x 3x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
'use client';
 
import { Follower } from '@/types/service/follow';
 
import { FollowingCard } from '../message-following-card';
 
interface FollowingListProps {
  items: Follower[];
}
 
export const FollowingList = ({ items }: FollowingListProps) => {
  return (
    <div>
      {items.map((item) => (
        <FollowingCard
          key={item.userId}
          nickname={item.nickname}
          profileImage={item.profileImage}
          profileMessage={item.profileMessage}
          type='following'
          userId={item.userId}
        />
      ))}
    </div>
  );
};