"use client" import { Camera } from "lucide-react" import Link from "next/link" import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { Button } from "@/components/ui/button" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Input } from "@/components/ui/input" import { Label } from "@/components/ui/label" import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group" import { Separator } from "@/components/ui/separator" import { Switch } from "@/components/ui/switch" import { Textarea } from "@/components/ui/textarea" import { currentUser } from "@/lib/mock-data" import type { UserRole } from "@/lib/types" import { useAuthStore } from "@/store/auth" export default function SettingsPage() { const { currentRole, verifiedRoles, switchRole } = useAuthStore() const isRoleVerified = (role: UserRole) => verifiedRoles.includes(role) return (

个人设置

头像
{currentUser.nickname[0]}

点击更换头像,支持 JPG、PNG 格式

基本信息