import { useState } from "react"; import { Card, CardContent } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button";export default function HighSchoolSelector() { const [formData, setFormData] = useState({ gpa: "", toefl: "", ssat: "", interests: "", location: "", }); const [recommendations, setRecommendations] = useState([]);const handleChange = (e) => { setFormData({ ...formData, [e.target.name]: e.target.value }); };const handleSubmit = async () => { const response = await fetch("/api/select-highschool", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(formData), }); const data = await response.json(); setRecommendations(data.schools); };return (

AI美高选校测评

{recommendations.length > 0 && (

推荐学校:

    {recommendations.map((school, index) => (
  • {school}
  • ))}
)}
); }
error: Content is protected !!

一对一免费评估

现在预约!

美国名校录取核心三要素

点击观看!

讲座视频链接将发送至您提供的邮箱!