Untitled

 avatar
unknown
typescript
9 months ago
448 B
16
Indexable
// app/result/page.tsx (client component 포함)
"use client";
import { useSearchParams } from "next/navigation";
import ResultImage from "@/components/ResultImage";

export default function ResultPage() {
  const params = useSearchParams();
  const name = params?.get("name") ?? "익명";
  return (
    <main>
      <h1>심리테스트 결과</h1>
      <ResultImage name={name} bgSrc="/images/result-bg.png" />
    </main>
  );
}
Editor is loading...
Leave a Comment