'use client' // Next Imports import Link from 'next/link' import { useParams } from 'next/navigation' // MUI Imports import useMediaQuery from '@mui/material/useMediaQuery' import { styled, useTheme } from '@mui/material/styles' import Typography from '@mui/material/Typography' import Button from '@mui/material/Button' // Third-party Imports import classnames from 'classnames' // Type Imports import type { SystemMode } from '@core/types' import type { Locale } from '@configs/i18n' // Component Imports import DirectionalIcon from '@components/DirectionalIcon' import Logo from '@components/layout/shared/Logo' import CustomTextField from '@core/components/mui/TextField' // Hook Imports import { useImageVariant } from '@core/hooks/useImageVariant' import { useSettings } from '@core/hooks/useSettings' // Util Imports import { getLocalizedUrl } from '@/utils/i18n' // Styled Custom Components const ForgotPasswordIllustration = styled('img')(({ theme }) => ({ zIndex: 2, blockSize: 'auto', maxBlockSize: 650, maxInlineSize: '100%', margin: theme.spacing(12), [theme.breakpoints.down(1536)]: { maxBlockSize: 550 }, [theme.breakpoints.down('lg')]: { maxBlockSize: 450 } })) const MaskImg = styled('img')({ blockSize: 'auto', maxBlockSize: 355, inlineSize: '100%', position: 'absolute', insetBlockEnd: 0, zIndex: -1 }) const ForgotPassword = ({ mode }: { mode: SystemMode }) => { // Vars const darkImg = '/images/pages/auth-mask-dark.png' const lightImg = '/images/pages/auth-mask-light.png' const darkIllustration = '/images/illustrations/auth/v2-forgot-password-dark.png' const lightIllustration = '/images/illustrations/auth/v2-forgot-password-light.png' // Hooks const { lang: locale } = useParams() const { settings } = useSettings() const theme = useTheme() const hidden = useMediaQuery(theme.breakpoints.down('md')) const authBackground = useImageVariant(mode, lightImg, darkImg) const characterIllustration = useImageVariant(mode, lightIllustration, darkIllustration) return (
{!hidden && }
Forgot Password 🔒 Enter your email and we'll send you instructions to reset your password
e.preventDefault()} className='flex flex-col gap-6'> Back to login
) } export default ForgotPassword