forked from Archives/Athou_commafeed
22 lines
576 B
TypeScript
22 lines
576 B
TypeScript
import { ImageWithPlaceholderWhileLoading } from "components/ImageWithPlaceholderWhileLoading"
|
|
|
|
export interface FeedFaviconProps {
|
|
url: string
|
|
size?: number
|
|
}
|
|
|
|
export function FeedFavicon({ url, size = 18 }: FeedFaviconProps) {
|
|
return (
|
|
<ImageWithPlaceholderWhileLoading
|
|
src={url}
|
|
alt="feed favicon"
|
|
width={size}
|
|
height={size}
|
|
placeholderWidth={size}
|
|
placeholderHeight={size}
|
|
placeholderBackgroundColor="inherit"
|
|
placeholderIconSize={size}
|
|
/>
|
|
)
|
|
}
|