import { View, Image } from "@tarojs/components";
import { memo } from "react";

interface Props {
  src: string;
  size: "small" | "medium" | "large" | "raw";
}

export const ImageTpl = memo(({ src, size }: Props) => {
  console.log(size);
  return (
    <View>
      <Image src={src} mode="widthFix" />
    </View>
  );
});
