"use client"; import { useState } from "react"; import { Bot, Send } from "lucide-react"; import { Button } from "@/components/ui/Button"; const answers: Record = { "Can I spend $200 this weekend?": "Yes, but keep it under $154 if you want to stay on pace for your emergency-fund goal.", "Why did my score move?": "Utilization dropped from 34% to 27%, which likely helped your FICO 8 estimate. Keep cards below 30% before statement close.", "Which card for groceries?": "Use Sapphire Preferred for groceries this week. It beats your flat 2% card based on current bonus categories." }; export function AskAartha() { const [open, setOpen] = useState(false); const [message, setMessage] = useState("Can I spend $200 this weekend?"); return (
{open ? (
Ask Aartha
{answers[message]}
{Object.keys(answers).map((prompt) => ( ))}

Educational guidance only, not regulated financial advice.

) : null}
); }