export const getFullUrl = (url?: string) => { const BASE_URL = 'https://9b5b-202-8-116-13.ngrok-free.app'; if (!url) return ''; return url.startsWith('/') ? `${BASE_URL}${url}` : url; }; export const formatTime = (dateString?: string) => { if (!dateString) return ''; const dateObj = new Date(dateString); // Example output: 11:57 AM return dateObj.toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit', hour12: true, }); }; export const formatDate = (dateString?: string) => { if (!dateString) return ''; const dateObj = new Date(dateString); // Example output: July 8, 2026 return dateObj.toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric', }); };