All files / src/components/shared/card/card-profile index.tsx

100% Statements 15/15
100% Branches 1/1
100% Functions 1/1
100% Lines 15/15

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 161x 1x 1x 1x 1x 1x 1x 1x 4x 4x 4x 4x 4x 4x 4x  
import { ProfileImage } from '@/components/shared/profile-image';
 
type CardProfileProps = {
  nickName: string;
  profileImage: string | null;
};
 
export const CardProfile = ({ nickName, profileImage }: CardProfileProps) => {
  return (
    <div className='mt-3 flex items-center gap-1.5'>
      <ProfileImage size='xs' src={profileImage} />
      <span className='text-text-xs-medium text-gray-900'>{nickName}</span>
    </div>
  );
};