import Badge from 'react-bootstrap/Badge'
import OverlayTrigger from 'react-bootstrap/OverlayTrigger'
import Tooltip from 'react-bootstrap/Tooltip'
import CowboyHatIcon from '../svgs/cowboy.svg'
import { numWithUnits } from '../lib/format'
export default function CowboyHat ({ user, badge, className = 'ms-1', height = 16, width = 16 }) {
if (user?.streak === null || user.hideCowboyHat) {
return null
}
const streak = user.streak
return (
{badge
? (
{streak || 'new'}
)
: }
)
}
export function HatTooltip ({ children, overlayText, placement }) {
return (
{overlayText}
}
trigger={['hover', 'focus']}
>
{children}
)
}