mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 12:27:44 +00:00
24 lines
704 B
TypeScript
24 lines
704 B
TypeScript
import Link from "next/link";
|
|
import { Button } from "./ui/button";
|
|
import { GitHubLogoIcon } from "@radix-ui/react-icons";
|
|
import { ExternalLink } from "lucide-react";
|
|
|
|
export function ForkButton({ url }: { url: string }) {
|
|
return (
|
|
<div className="flex items-center gap-2 my-2">
|
|
<Link href={`https://codesandbox.io/p/github/${url}`} target="_blank">
|
|
<Button className="gap-2" variant="outline" size="sm">
|
|
<ExternalLink size={12} />
|
|
Open in Stackblitz
|
|
</Button>
|
|
</Link>
|
|
<Link href={`https://github.com/${url}`} target="_blank">
|
|
<Button className="gap-2" variant="secondary" size="sm">
|
|
<GitHubLogoIcon />
|
|
View on GitHub
|
|
</Button>
|
|
</Link>
|
|
</div>
|
|
);
|
|
}
|