/**
 * Signup page.
 *
 * ⚠️ AUTO-GENERATED BY PRISM - DO NOT EDIT
 */

import React from 'react';
import { useNavigate } from 'react-router-dom';
import { SignupForm } from '../components/auth/SignupForm';

/**
 * Signup page with form and navigation.
 */
export function Signup(): JSX.Element {
  const navigate = useNavigate();

  const handleSuccess = () => {
    // After successful signup, redirect to home
    navigate('/', { replace: true });
  };

  const handleLoginClick = () => {
    navigate('/login');
  };

  return (
    <div className="min-h-screen bg-nordic-50 flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
      <SignupForm onSuccess={handleSuccess} onLoginClick={handleLoginClick} />
    </div>
  );
}
