Files
Hayden Bleasel 44ae73eaaf Documentation (#219)
* Initial migration

* Update homepage

* Delete .source

* Fix gitignores

* Draft content

* Finish drafting content, migrate FAQ

* Update code-blocks.tsx

* Update route.ts

* Update next config

* Upgrade to Next.js 16, fix commands

* Update layout.tsx
2025-11-15 19:41:00 -08:00

22 lines
552 B
TypeScript

import { SiGithub } from "@icons-pack/react-simple-icons";
import { Button } from "../ui/button";
export const GitHubButton = () => {
const owner = process.env.NEXT_PUBLIC_GEISTDOCS_OWNER;
const repo = process.env.NEXT_PUBLIC_GEISTDOCS_REPO;
if (!(owner && repo)) {
return null;
}
const url = `https://github.com/${owner}/${repo}`;
return (
<Button asChild size="icon-sm" type="button" variant="ghost">
<a href={url} rel="noopener" target="_blank">
<SiGithub className="size-4" />
</a>
</Button>
);
};