export async function generateAIResponse(
  messages: { role: string; content: string }[],
  personaId: string,
  token: string
): Promise<Response> {
  return fetch("/mobile/api/chat/send", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      Authorization: `Bearer ${token}`,
    },
    body: JSON.stringify({ messages, personaId }),
  });
}

export const DAILY_VERSE = [
  { arabic: "إِنَّ مَعَ الْعُسْرِ يُسْرًا", reference: "Quran 94:6", translation: "Indeed, with hardship comes ease." },
  { arabic: "فَاذْكُرُونِي أَذْكُرْكُمْ", reference: "Quran 2:152", translation: "So remember Me; I will remember you." },
  { arabic: "وَمَن يَتَوَكَّلْ عَلَى اللَّهِ فَهُوَ حَسْبُهُ", reference: "Quran 65:3", translation: "And whoever relies upon Allah — He is sufficient for him." },
  { arabic: "رَبَّنَا آتِنَا فِي الدُّنْيَا حَسَنَةً وَفِي الْآخِرَةِ حَسَنَةً", reference: "Quran 2:201", translation: "Our Lord, give us good in this world and good in the Hereafter." },
  { arabic: "إِنَّ اللَّهَ لَا يُغَيِّرُ مَا بِقَوْمٍ حَتَّىٰ يُغَيِّرُوا مَا بِأَنفُسِهِمْ", reference: "Quran 13:11", translation: "Indeed, Allah will not change the condition of a people until they change what is in themselves." },
];
