2024-05-20 04:16:02 +04:00
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
|
import {redirect} from 'next/navigation'
|
|
|
|
|
import ResetPasswordForm from './form.js'
|
|
|
|
|
|
|
|
|
|
export default async function ResetPasswordPage({searchParams}) {
|
2026-01-03 12:10:09 +04:00
|
|
|
const params = await searchParams
|
|
|
|
|
const {token} = params
|
2024-05-20 04:16:02 +04:00
|
|
|
|
|
|
|
|
if (!token) {
|
|
|
|
|
redirect('/login')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (<ResetPasswordForm token={token} />)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ResetPasswordPage.propTypes = {
|
|
|
|
|
searchParams: PropTypes.object
|
|
|
|
|
}
|