import React from 'react';
import { Avatar } from '../../atoms';

type ProfileProps = { profileImage: string; userName: string; subheader?: string };

const Profile = ({ profileImage, userName, subheader }: ProfileProps) => {
  return (
    <div className='flex items-center gap-2'>
      <Avatar image={profileImage} />
      <div>
        <div className='text-gray-700 text-[14px] font-semibold leading-[20px]'>
          {userName}
        </div>
        {subheader && (
          <div className='text-gray-600 text-[12px] leading-[18px]'>
            {subheader}
          </div>
        )}
      </div>
    </div>
  );
};

export { Profile, ProfileProps };
