Files
Hayden Bleasel 55fae375a4 Update docs, internationalization (#35)
* Update Geistdocs

* Update geistdocs.tsx

* Run translation script

* Delete toc.tsx

* Update route.ts

* Update route.ts
2025-12-04 23:57:35 -08:00

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>
);
};