import { cn } from '@/lib/utils';
import { Phone, Mail } from 'lucide-react';

const NavContactInfo = ({ label, type }) => {
  return (
    <div
      className={cn(
        'flex items-center gap-1 xs:gap-1.5 sm:gap-2 text-gray-600',
        type === 'phone' ? ' border-e border-gray-500 pe-2 xs:pe-3 sm:pe-3 xl:pe-4' : ''
      )}>
      {type === 'phone' ? (
        <Phone
          className='w-3 h-3 xs:w-3.5 xs:h-3.5 sm:w-4 sm:h-4 flex-shrink-0'
          fill='black'
        />
      ) : (
        <Mail className='w-3 h-3 xs:w-3.5 xs:h-3.5 sm:w-4 sm:h-4 flex-shrink-0' />
      )}
      <p className='text-[10px] xs:text-xs sm:text-sm lg:text-base whitespace-nowrap font-medium' suppressHydrationWarning>{label}</p>
    </div>
  );
};

export default NavContactInfo;
