import { LanguageSwitcher } from '../../components/language-switcher';
import { ForgotPasswordCard } from '../../components/forgot-password-card';
import { getDictionary, getLocale } from '../../lib/i18n';

export default async function ForgotPasswordPage() {
  const locale = await getLocale();
  const dict = await getDictionary();

  return (
    <ForgotPasswordCard
      languageSwitcher={
        <LanguageSwitcher
          currentLocale={locale}
          label={dict.common.language}
          englishLabel={dict.common.english}
          indonesianLabel={dict.common.indonesian}
          submitLabel={dict.common.save}
          variant="compact"
        />
      }
    />
  );
}
