import { wwwAPIPath } from "@/utilities/wwwAPI";
import Image from "next/image";

export default function AvatarDrawing({
  avatarID,
  drawingLength = 48,
  drawingHeight = 48,
}: {
  avatarID: string;
  drawingLength?: number;
  drawingHeight?: number;
}) {
  return (
    <Image
      unoptimized
      alt=""
      src={`${wwwAPIPath}/avatar/drawing${avatarID ? `/${avatarID}` : ""}`}
      className="rounded border"
      width={drawingLength}
      height={drawingHeight}
    />
  );
}
