"use client"; import { useActionState } from "react"; import { changePasswordAction, updateProfileAction } from "@/app/actions/settings"; import { TextareaField, TextField } from "@/components/settings-fields"; import { PlateBody, PlateFooter } from "@/components/settings-plate"; import { Alert, Button } from "@/components/ui"; import type { User } from "@/lib/users"; export function ProfileForm({ user }: { user: User }) { const [state, action, pending] = useActionState(updateProfileAction, undefined); return (
); } export function PasswordForm() { const [state, action, pending] = useActionState(changePasswordAction, undefined); return ( ); }