// src/App.jsx import { useState } from "react"; function TabButton({ label, isActive, onSelect }) { return ( ); } function TabContent({ activeTab }) { const content = { profile: "This is the profile tab content.", settings: "This is the settings tab content.", }; return
{content[activeTab]}
; } function TabPanel() { const [activeTab, setActiveTab] = useState("profile"); return (