Newer
Older
taehui / qwilight-fe / src / components / AvatarPlaceText.tsx
@Taehui Taehui on 6 Apr 404 bytes 2024-04-07 오전 8:25
import scss from "@/components/AvatarPlaceText.module.scss";

export default function AvatarPlaceText({
  avatarPlace,
  avatarCount,
}: {
  avatarPlace: number;
  avatarCount?: number;
}) {
  return (
    <span>
      <span className={scss.avatarPlace}>
        #{avatarPlace > 0 ? avatarPlace : "?"}
      </span>
      {typeof avatarCount === "number" && <>/{avatarCount}</>}
    </span>
  );
}