export const runtime = "nodejs";

const DEMO_CONVERSATION: { role: string; content: string; personaId: string }[] = [
  {
    role: "user",
    content: "Assalamualaikum! I've been feeling really stressed about work lately.",
    personaId: "nurbuddy",
  },
  {
    role: "assistant",
    content:
      "Waalaikumsalam warahmatullahi wabarakatuh! 😊 I'm sorry to hear you're feeling stressed. Remember what Allah says: **\"Verily, with hardship comes ease\"** (Quran 94:6). \n\nHere are a few things that might help:\n• Take a deep breath and recite *SubhanAllah* 33 times\n• Make wudu — it's surprisingly calming!\n• Step outside and appreciate Allah's creation for a few minutes\n\nYou're not alone, and this too shall pass, insha'Allah. 💛",
    personaId: "nurbuddy",
  },
  {
    role: "user",
    content: "That helps, thank you. Can you tell me more about patience in Islam?",
    personaId: "hakim",
  },
  {
    role: "assistant",
    content:
      "Ah, sabr (patience) — one of the most beautiful virtues in Islam. Let me share a story:\n\nProphet Ayyub (Job, peace be upon him) lost everything — wealth, children, and health. Yet he never stopped praising Allah. When asked how, he said: **\"Allah gave, and Allah has taken. Blessed be Allah in both.\"**\n\nAllah rewarded him tremendously: **\"And We gave him back his family and the like thereof with them — a mercy from Us and a reminder for those who worship\"** (Quran 38:43).\n\nYour patience through work stress is a form of worship too. Every moment you endure with grace is recorded. 🌱",
    personaId: "hakim",
  },
  {
    role: "user",
    content: "SubhanAllah, that's really powerful. JazakAllah khair!",
    personaId: "nurbuddy",
  },
  {
    role: "assistant",
    content:
      "Wa iyyak! 😊 So glad it resonated with you. Remember, the Prophet ﷺ said: **\"He who does not thank people, does not thank Allah.\"** \n\nMay Allah grant you ease in your work and bless your patience. Come back anytime you need a friend to talk to! 🌟",
    personaId: "nurbuddy",
  },
];

export async function GET() {
  return Response.json({
    conversation: DEMO_CONVERSATION,
    personas: ["nurbuddy", "hakim"],
  });
}
