export const PHONE_DISPLAY = '+370 612 34 567';
export const PHONE_E164 = '+37061234567';
export const PHONE_WA = '37061234567';
export const EMAIL = 'info@juozas.lt';
export const CITY = 'Vilnius';
export const HOURS = 'I-V 9:00-18:00, VI 10:00-14:00';

export const telUrl = (phone = PHONE_E164) => `tel:${phone.replace(/\s/g, '')}`;

export const whatsappUrl = (phone: string, make?: string, model?: string) => {
  const subject = [make, model].filter(Boolean).join(' ').trim();
  const text = subject ? `Sveiki, domina ${subject}` : 'Sveiki, domina automobilis';
  return `https://wa.me/${phone.replace(/\D/g, '')}?text=${encodeURIComponent(text)}`;
};
