import { useNavigate } from "react-router-dom";
import CreateProjectModal from "@/components/CreateProjectModal";

export default function CreateProjectPage() {
  const navigate = useNavigate();

  return (
    <div className="flex h-screen items-center justify-center">
      <CreateProjectModal
        onCreated={(project) => navigate(`/projects/${project.slug}`)}
        onClose={() => navigate(-1)}
      />
    </div>
  );
}