import Page from 'components/layout/Page'; import PageHeader from 'components/layout/PageHeader'; import ProfileDetails from 'components/settings/ProfileDetails'; import { useState } from 'react'; import { Breadcrumbs, Item, Tabs, useToast } from 'react-basics'; import UserPasswordForm from 'components/forms/UserPasswordForm'; export default function ProfileSettings() { const [tab, setTab] = useState('general'); const { toast, showToast } = useToast(); const handleSave = () => { showToast({ message: 'Saved successfully.', variant: 'success' }); }; return ( {toast} Profile General Password {tab === 'general' && } {tab === 'password' && } ); }