Newer
Older
taehui / qwilight-fe / src / components / AvatarPlaceText.tsx
@Taehui Taehui on 26 Mar 396 bytes v1.0.0
import scss from "@/components/AvatarPlaceText.module.scss";

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