import Link from 'next/link'; import Image from 'next/image'; import type { CreatorItem } from '@/types/response/channel/creators'; import { buildChannelUrl, formatHandle, formatCount } from '@/lib/utils/channel'; export default function CreatorCard({ creator }: { creator: CreatorItem }) { const href = buildChannelUrl({ handle: creator.handle, channelSID: creator.channelSID }); return (
{creator.thumbnailUrl ? ( ) : ( {creator.name.charAt(0).toUpperCase()} )}
{creator.isLive && ( LIVE )}

{creator.name}

{creator.gradeName && ( {creator.gradeImage && ( )} {creator.gradeName} )}
{creator.handle && (
{formatHandle(creator.handle)}
)}
구독 {formatCount(creator.subscriberCount)} 팔로워 {formatCount(creator.followerCount)}
); }