import { Phone } from 'lucide-react';
import { site } from '@/content/site';
import { cn } from '@/lib/cn';

type PhoneLinkProps = { label: string; className?: string; showLabel?: boolean };

/** Hotline as a real tel: link. The number stays LTR inside RTL text. */
export function PhoneLink({ label, className, showLabel = false }: PhoneLinkProps) {
  return (
    <a
      href={site.hotline.href}
      aria-label={label}
      className={cn(
        'inline-flex min-h-11 items-center gap-2.5 text-bone transition-colors duration-300 hover:text-gold-hi',
        className,
      )}
    >
      <Phone aria-hidden className="size-4 text-gold" strokeWidth={1.75} />
      {showLabel && <span className="text-sm text-mist">{label}</span>}
      <bdi dir="ltr" className="text-lg font-medium tracking-wide">
        {site.hotline.display}
      </bdi>
    </a>
  );
}
