import { getRequiredServerComponentSession } from '@documenso/lib/next-auth/get-server-component-session';

import { PasswordForm } from '~/components/forms/password';

export default async function PasswordSettingsPage() {
  const { user } = await getRequiredServerComponentSession();

  return (
    <div>
      <h3 className="text-lg font-medium">Password</h3>

      <p className="text-muted-foreground mt-2 text-sm">Here you can update your password.</p>

      <hr className="my-4" />

      <PasswordForm user={user} className="max-w-xl" />
    </div>
  );
}
