import { Octicon } from './index.js' interface Props { link?: string, icon?: keyof typeof Octicon, label?: string, tooltip?: string, tooltipLoc?: 'se' | 'sw' | 'nw', swapped?: boolean, } export function BtnLink({ link, icon, label, tooltip, tooltipLoc, swapped }: Props) { return {swapped ? <> {label && {label}} {icon && Octicon[icon]} : <> {icon && Octicon[icon]} {label && {label}} } }