blob: 477473d63dc1398695d90501a25909c1f4bf2c7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
"use client"
import { useSession } from "next-auth/react"
import { Separator } from "@/components/ui/separator"
import { ProfileForm } from "./profile-form"
import { ProfileImage } from "./profile-image"
import { PasswordForm } from "./password-form"
interface SettingsFormProps {
user: {
name?: string | null
email?: string | null
image?: string | null
}
}
export function SettingsForm({ user }: SettingsFormProps) {
const { update } = useSession()
return (
<div className="container mx-auto px-4 py-8 max-w-2xl">
<div className="space-y-6">
<div>
<h1 className="text-3xl font-bold">Account Settings</h1>
<p className="text-muted-foreground">
Manage your account information and security settings
</p>
</div>
<ProfileForm user={user} update={update} />
<Separator />
<ProfileImage user={user} update={update} />
<Separator />
<PasswordForm />
</div>
</div>
)
}
|