mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
docs: last changes
This commit is contained in:
23
docs/components/fork-button.tsx
Normal file
23
docs/components/fork-button.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
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} />
|
||||
Fork
|
||||
</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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user