The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
import { X } from "@/ui/shared/icons";
import { Button } from "@dub/ui";
import Link from "next/link";
export function CloseInviteButton({
goToOnboarding,
variant = "x",
}: {
goToOnboarding?: boolean;
variant?: "x" | "full";
}) {
return (
<Link href={goToOnboarding ? "/onboarding" : "/"}>
<Button
variant={variant === "x" ? "outline" : "primary"}
icon={
variant === "x" ? (
<X className="text-content-subtle size-5" />
) : undefined
}
className={
variant === "x"
? "size-8 p-0 active:scale-95"
: "h-9 w-fit rounded-lg"
}
text={variant === "x" ? undefined : "Go back"}
/>
</Link>
);
}