From d53f29fbde2952f6e33f0458ae01f1e897daff61 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Sat, 28 Oct 2023 17:03:28 +0200 Subject: [PATCH] Remove LazyImage.tsx --- web/src/ui/tools/LazyImage.tsx | 35 ---------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 web/src/ui/tools/LazyImage.tsx diff --git a/web/src/ui/tools/LazyImage.tsx b/web/src/ui/tools/LazyImage.tsx deleted file mode 100644 index cd4e7e928..000000000 --- a/web/src/ui/tools/LazyImage.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import "minimal-polyfills/Object.fromEntries"; -import { LazySvg, type LazySvgProps } from "ui/tools/LazySvg"; - -type Props = { - className?: string; - url: string; - svgProps: Omit; - imgProps: { - className?: string; - alt: string; - }; - cx: ( - className1: string | undefined, - className2: string | undefined - ) => string | undefined; -}; - -export function LazyImage(props: Props) { - const { className, url, imgProps, svgProps, cx } = props; - - return url.endsWith(".svg") ? ( - - ) : ( - {imgProps.alt} - ); -}