mirror of
https://github.com/vercel/components.build.git
synced 2026-09-14 20:06:39 +08:00
55fae375a4
* Update Geistdocs * Update geistdocs.tsx * Run translation script * Delete toc.tsx * Update route.ts * Update route.ts
20 lines
505 B
TypeScript
20 lines
505 B
TypeScript
import { SiGithub } from "@icons-pack/react-simple-icons";
|
|
import { github } from "@/geistdocs";
|
|
import { Button } from "../ui/button";
|
|
|
|
export const GitHubButton = () => {
|
|
if (!(github.owner && github.repo)) {
|
|
return null;
|
|
}
|
|
|
|
const url = `https://github.com/${github.owner}/${github.repo}`;
|
|
|
|
return (
|
|
<Button asChild size="icon-sm" type="button" variant="ghost">
|
|
<a href={url} rel="noopener" target="_blank">
|
|
<SiGithub className="size-4" />
|
|
</a>
|
|
</Button>
|
|
);
|
|
};
|