import Tooltip from './tooltip' import { OverlayTriggerProps } from 'react-bootstrap' type TooltipProps = { id: string text: React.ReactNode placement?: OverlayTriggerProps['placement'] className?: string } type BetaBadgeProps = { tooltip: TooltipProps url?: string phase?: string } function BetaBadge({ tooltip, url = '/beta/participate', phase = 'beta', }: BetaBadgeProps) { let badgeClass switch (phase) { case 'release': badgeClass = 'info-badge' break default: badgeClass = 'beta-badge' } return ( {tooltip.text} ) } export default BetaBadge