mirror of
https://github.com/vercel/streamdown.git
synced 2026-09-19 02:18:37 +08:00
44ae73eaaf
* 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
22 lines
552 B
TypeScript
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>
|
|
);
|
|
};
|