import { createFileRoute } from '@tanstack/react-router';
import { ResetPasswordForm } from '@/modules/auth/components/reset-password-form';

export const Route = createFileRoute('/auth/reset-password')({
  component: RouteComponent,
  validateSearch: (search: Record<string, unknown>) => {
    return {
      email: (search.email as string) || undefined,
    };
  },
});

function RouteComponent() {
  return <ResetPasswordForm />;
}
