Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

714 B
Raw Blame
import { t } from "@lingui/core/macro";
import { createFileRoute } from "@tanstack/react-router";
import z from "zod";
import { OffersPage } from "@/features/career/offers";
import { getPageTitle } from "@/libs/seo";

export const Route = createFileRoute("/dashboard/career/offers")({
	head: () => ({ meta: [{ title: getPageTitle(t`Offers`) }] }),
	validateSearch: z.object({
		a: z.string().min(1).optional().catch(undefined),
		b: z.string().min(1).optional().catch(undefined),
		highlight: z.string().min(1).optional().catch(undefined),
	}),
	component: RouteComponent,
});

function RouteComponent() {
	const { a, b, highlight } = Route.useSearch();
	return <OffersPage a={a} b={b} highlight={highlight} />;
}