import Image from 'next/image' import { cn } from 'ui' import useConfData from '~/components/LaunchWeek/hooks/use-conf-data' export default function TicketProfile({ className }: { className?: string }) { const { userData: user } = useConfData() const { username, name, metadata, platinum, secret: hasSecretTicket } = user const hasLightTicket = platinum const profileImg = `https://github.com/${username}.png?size=60` const hideAvatar = !!metadata?.hideAvatar const HAS_ROLE = !!metadata?.role const HAS_COMPANY = !!metadata?.company const HAS_NO_META = !HAS_ROLE && !HAS_COMPANY return (
{!hideAvatar && profileImg && ( {`${username} )}

{name || username || 'Your Name'}

{HAS_NO_META && username && (

@{username}

)}
{HAS_ROLE && {metadata?.role}} {HAS_COMPANY && ( {HAS_ROLE && at } {metadata?.company} )}
) }