import { createFileRoute, Link } from "@tanstack/react-router"; import { Logo } from "@/components/mika/Logo"; type SignupSearch = { plan?: string; cycle?: "monthly" | "yearly"; }; export const Route = createFileRoute("/signup")({ validateSearch: (search: Record): SignupSearch => ({ plan: typeof search.plan === "string" ? search.plan : undefined, cycle: search.cycle === "yearly" || search.cycle === "monthly" ? search.cycle : undefined, }), component: SignupPlaceholder, }); function SignupPlaceholder() { const { plan, cycle } = Route.useSearch(); return (

Criar conta

Cadastro completo será implementado na Etapa 2.

{plan && (

Plano selecionado: {plan} · {cycle === "yearly" ? "anual" : "mensal"}

)}
← Voltar para o início
); }