export default function Image()

in frontend/src/components/Image.tsx [15:37]


export default function Image(props: ComponentProps<typeof _NextImage>) {
  const altText = props.alt;
  const { props: nextProps } = getImageProps({ ...props });
  const { style, className: origClassName, ...delegated } = nextProps;
  const debugStyles = false; // Set to true to fail build on new inline styles

  let className = origClassName || "";
  if (typeof style === "object" && style !== null) {
    if (Object.keys(style).length === 1 && style.color === "transparent") {
      className = `${className} ${styles.transparent}`.trim();
    } else if (debugStyles) {
      throw new Error(
        `Update components/Image.tsx, unexpected style value: ${JSON.stringify(style)}`,
      );
    }
  }

  if (className !== "") {
    return <img className={className} {...delegated} alt={altText} />;
  } else {
    return <img {...delegated} alt={altText} />;
  }
}