import React from 'react'; import { IconBrandGithub, IconTag, IconFileText, IconDownload, IconBrandNpm } from '@tabler/icons-react'; interface Props { icon?: React.ReactNode; children?: React.ReactNode; side?: 'left' | 'right'; link?: string; label?: string; } const Button: React.FC = ({ side = 'left', children, icon, link }: Props) => { return (
); }; export default Button; export function GhButton(props: Props) { return ( } side={props.side} link={props.link}> {props.label || "Github"} ); } export function DocButton(props: Props) { return ( } side={props.side} link={props.link}> {props.label || "Documentation"} ); } export function DownloadButton(props: Props) { return ( } side={props.side} link={props.link}> {props.label || "Download"} ); } export function ReleaseButton(props: Props) { return ( } side={props.side} link={props.link}> {props.label || "Releases"} ); } export function NpmButton(props: Props) { return ( } side={props.side} link={props.link}> {props.label || "Package"} ); }