import { Tab } from "@headlessui/react"; import { AccountSettings } from "@/types/global"; import { useState } from "react"; import ChangePassword from "./ChangePassword"; import ProfileSettings from "./ProfileSettings"; import PrivacySettings from "./PrivacySettings"; type Props = { toggleSettingsModal: Function; activeUser: AccountSettings; className?: string; defaultIndex?: number; }; export default function UserModal({ className, defaultIndex, toggleSettingsModal, activeUser, }: Props) { const [user, setUser] = useState(activeUser); return (

Account Settings

selected ? "px-2 py-1 bg-sky-200 duration-100 rounded-md outline-none" : "px-2 py-1 hover:bg-slate-200 rounded-md duration-100 outline-none" } > Profile Settings selected ? "px-2 py-1 bg-sky-200 duration-100 rounded-md outline-none" : "px-2 py-1 hover:bg-slate-200 rounded-md duration-100 outline-none" } > Privacy Settings selected ? "px-2 py-1 bg-sky-200 duration-100 rounded-md outline-none" : "px-2 py-1 hover:bg-slate-200 rounded-md duration-100 outline-none" } > Password
); }