import Link from "next/link";

export const metadata = {
  title: "Thank You"
};

export default function ThanksPage({
  searchParams
}: {
  searchParams: { submission_id?: string };
}) {
  return (
    <section className="notice">
      <h2>Thank you. We received your background.</h2>
      <p>
        The Paprika team will review your profile and follow up with next steps. If your timeline is
        urgent, mention that in your reply.
      </p>
      {searchParams.submission_id ? (
        <p className="form-success">Submission ID: {searchParams.submission_id}</p>
      ) : null}
      <div className="actions">
        <Link className="button secondary" href="/">
          Back to Homepage
        </Link>
      </div>
    </section>
  );
}
