import { useEffect, useState } from "react"
import { X } from "lucide-react"
import { getCatalog } from "../api"
import { useI18n } from "../i18n/I18nContext"
import { T } from "../theme"
const EXAMPLES = [
"What is aspirin?",
"Side effects of metformin?",
"Can I take ibuprofen with warfarin?",
"How do I take atorvastatin?",
"I forgot my metformin dose, what do I do?",
]
export default function HelpGuide({ onClose }) {
const { t } = useI18n()
const [drugs, setDrugs] = useState([])
useEffect(() => { getCatalog().then(setDrugs).catch(() => {}) }, [])
const sections = [
["help_chat_title", "help_chat_body"],
["help_schedule_title", "help_schedule_body"],
["help_today_title", "help_today_body"],
["help_points_title", "help_points_body"],
["help_badges_title", "help_badges_body"],
["help_meds_lib_title", "help_meds_lib_body"],
]
return (