diff --git a/knip.jsonc b/knip.jsonc index afaed5af5..c50c42f06 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -19,7 +19,6 @@ // Existing findings at adoption. Delete entries as the corresponding code is cleaned up. "ignoreFiles": [ "src/chat/preferences.functions.ts", - "src/components/OptimizedImage.tsx", "src/components/icons/BaseballCapIcon.tsx", "src/mcp/oauth.server.ts", "src/server/blog.ts", diff --git a/src/components/OptimizedImage.tsx b/src/components/OptimizedImage.tsx deleted file mode 100644 index 5dab57cea..000000000 --- a/src/components/OptimizedImage.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import * as React from 'react' -import { - getOptimizedImageUrl, - type ImageOptimizationOptions, -} from '~/utils/optimizedImage' - -type OptimizedImageProps = Omit< - React.ImgHTMLAttributes, - 'src' -> & - ImageOptimizationOptions & { - src: string - } - -export function OptimizedImage({ - fit, - format, - height, - quality, - src, - width, - alt = '', - loading = 'lazy', - decoding = 'async', - ...props -}: OptimizedImageProps) { - const optimizedSrc = React.useMemo( - () => getOptimizedImageUrl(src, { fit, format, height, quality, width }), - [fit, format, height, quality, src, width], - ) - - return ( - {alt} - ) -}