Files
vercel__ai-elements/apps/docs/components/geistdocs/github-button.tsx
Hayden Bleasel ea149172b6 Update Geistdocs
2026-01-16 17:05:48 -08:00

20 lines
529 B
TypeScript

import { SiGithub } from "@icons-pack/react-simple-icons";
import { Button } from "@repo/shadcn-ui/components/ui/button";
import { github } from "@/geistdocs";
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>
);
};