import { redirect } from "next/navigation";

import { DEFAULT_CHARACTER_SLUG } from "@/data/constants/character";
import {
  appendRouteSearchParams,
  getCharacterRoutes,
  type RouteSearchParams,
} from "@/router/routes";

export default async function TipPage({
  searchParams,
}: {
  searchParams: Promise<RouteSearchParams>;
}) {
  redirect(
    appendRouteSearchParams(
      getCharacterRoutes(DEFAULT_CHARACTER_SLUG).tip,
      await searchParams,
    ),
  );
}
