'use client'; import React, { useState } from 'react'; import Image from 'next/image'; type Mode = 'light' | 'dark'; interface Props { mode?: Mode; } function CreateNewPasswordForm({ mode }: Props) { const [password, setPassword] = useState(''); const [confirmPassword, setConfirmPassword] = useState(''); return (
Padlock

Create New Password

Ensure that your new password is different from the previous one.

setPassword(e.target.value)} placeholder='New Password' required className={`${mode === 'dark' ? 'bg-[#16171C] text-gray-200' : 'placeholder-gray-400 text-black border bg-gray-100 border-gray-300'} w-full px-3 py-2 mt-1 mb-1 rounded-md focus:outline-none focus:ring-1 focus:ring-gray-500 sm:text-sm`} />
setConfirmPassword(e.target.value)} placeholder='Confirm Password' required className={`${mode === 'dark' ? 'bg-[#16171C] text-gray-200' : 'placeholder-gray-400 text-black border bg-gray-100 border-gray-300'} w-full px-3 py-2 mt-1 mb-10 rounded-md focus:outline-none focus:ring-1 focus:ring-gray-500 sm:text-sm`} />
); } export default CreateNewPasswordForm;