PluginLogo.tsx 386 B

12345678910111213
  1. import React from 'react';
  2. type PluginLogoProps = {
  3. alt: string;
  4. className?: string;
  5. src: string;
  6. height?: string | number;
  7. };
  8. export function PluginLogo({ alt, className, src, height }: PluginLogoProps): React.ReactElement {
  9. // @ts-ignore - react doesn't know about loading attr.
  10. return <img src={src} className={className} alt={alt} loading="lazy" height={height} />;
  11. }