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