Files
vercel__workflow/docs/components/geistdocs/github-button.tsx
2026-01-27 18:50:50 -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>
);
};