2025-06-27 16:29:31 +02:00
|
|
|
import { ImageWithPlaceholderWhileLoading } from "@/components/ImageWithPlaceholderWhileLoading"
|
2024-06-13 21:54:14 +02:00
|
|
|
|
|
|
|
|
export interface FeedFaviconProps {
|
|
|
|
|
url: string
|
|
|
|
|
size?: number
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-29 15:21:15 +02:00
|
|
|
export function FeedFavicon({ url, size = 18 }: Readonly<FeedFaviconProps>) {
|
2024-06-13 21:54:14 +02:00
|
|
|
return (
|
|
|
|
|
<ImageWithPlaceholderWhileLoading
|
|
|
|
|
src={url}
|
|
|
|
|
alt="feed favicon"
|
|
|
|
|
width={size}
|
|
|
|
|
height={size}
|
|
|
|
|
placeholderWidth={size}
|
|
|
|
|
placeholderHeight={size}
|
|
|
|
|
placeholderBackgroundColor="inherit"
|
|
|
|
|
placeholderIconSize={size}
|
|
|
|
|
/>
|
|
|
|
|
)
|
|
|
|
|
}
|