The application encountered an error. Try clearing your browser cache/data.
{this.state.error?.toString()}
);
}
return this.props.children;
}
}
// --- Initial Mock Data ---
const INITIAL_DATA = {
nclex: [],
pharm: [
{
id: 1,
question: "A client is prescribed lisinopril. Which finding requires immediate nursing action?",
options: [
"Dry cough",
"Dizziness upon standing",
"Swelling of the lips and tongue",
"Serum potassium 4.2 mEq/L"
],
correct: 2,
explanation: "Swelling of the lips and tongue indicates angioedema, a potentially life-threatening adverse reaction to ACE inhibitors like lisinopril that can compromise the airway. Dry cough and orthostatic hypotension are common side effects but not emergencies."
}
],
medsurg: [
{
id: 201,
question: "A client with COPD is admitted with an exacerbation. The pulse oximeter reads 86% on room air. Which action should the nurse take first?",
options: [
"Administer oxygen at 4 L/min via nasal cannula",
"Place the client in a high-Fowler's position",
"Prepare for endotracheal intubation",
"Assess the client's arterial blood gases (ABGs)"
],
correct: 1,
explanation: "Placing the client in a high-Fowler's position promotes chest expansion and improves oxygenation immediately with the least invasiveness. Oxygen should be administered cautiously in COPD (usually starting at 1-2 L/min) to avoid suppressing the hypoxic drive, making 4 L/min too high as a starting action."
},
{
id: 202,
question: "A nurse is caring for a client 4 hours post-thyroidectomy. Which finding requires immediate intervention?",
options: [
"Sore throat and hoarseness",
"Calcium level of 9.0 mg/dL",
"Noisy breathing (stridor)",
"Pain at the incision site rating 4/10"
],
correct: 2,
explanation: "Stridor indicates airway obstruction due to edema or laryngeal nerve damage and is a medical emergency requiring immediate action (often intubation or tracheostomy). Sore throat, mild hypocalcemia (normal is ~8.5-10.5), and pain are expected or less urgent findings."
},
{
id: 203,
question: "The nurse is caring for a client with a chest tube. The nurse notes continuous bubbling in the water seal chamber. What is the priority action?",
options: [
"Clamp the chest tube immediately",
"Increase the suction pressure",
"Check the drainage system for leaks",
"Document the finding as normal"
],
correct: 2,
explanation: "Continuous bubbling in the water seal chamber indicates an air leak in the system. The priority is to locate the leak (checking connections from the patient to the unit). Clamping is only done for specific checks and can cause tension pneumothorax if done inappropriately."
},
{
id: 204,
question: "A client with diabetes mellitus type 1 is found unresponsive. The blood glucose is 42 mg/dL. Which medication should the nurse anticipate administering?",
options: [
"Regular insulin SQ",
"Glucagon IM",
"Metformin PO",
"Dextrose 5% in Water IV"
],
correct: 1,
explanation: "For an unresponsive client with severe hypoglycemia who cannot swallow, Glucagon IM or Dextrose 50% IV (not D5W, which is too dilute) is the standard treatment. Insulin would worsen the condition."
}
],
default: [
{
id: 99,
question: "Which action is the priority when caring for a client with a potential cervical spine injury?",
options: [
"Assess pupil reaction",
"Immobilize the head and neck",
"Check for sensation in extremities",
"Administer pain medication"
],
correct: 1,
explanation: "The priority is to prevent further injury. Immobilizing the head and neck stabilizes the cervical spine. Assessment comes after ensuring safety/stabilization in this specific trauma context."
}
]
};
const CATEGORIES = [
{ id: 'nclex', title: 'NCLEX RN Mixed', sub: 'All Topics', icon: Activity, color: 'bg-blue-100 text-blue-600' },
{ id: 'pharm', title: 'Pharmacology', sub: 'Meds & Doses', icon: Pill, color: 'bg-purple-100 text-purple-600' },
{ id: 'medsurg', title: 'Med-Surg', sub: 'Clinical Care', icon: Stethoscope, color: 'bg-emerald-100 text-emerald-600' },
{ id: 'fund', title: 'Fundamentals', sub: 'Basics', icon: BookOpen, color: 'bg-amber-100 text-amber-600' },
{ id: 'psych', title: 'Psychiatry', sub: 'Mental Health', icon: Brain, color: 'bg-pink-100 text-pink-600' },
{ id: 'mat', title: 'Maternity', sub: 'OB & Newborn', icon: Baby, color: 'bg-rose-100 text-rose-600' },
{ id: 'peds', title: 'Pediatrics', sub: 'Child Health', icon: Users, color: 'bg-orange-100 text-orange-600' },
{ id: 'lead', title: 'Leadership', sub: 'Ethics & Mgmt', icon: Briefcase, color: 'bg-slate-100 text-slate-600' },
];
const Logo = () => (