import EmptyOGImage from '@/lib/config/metadata/empty-og.png'; import { formatNumber } from '@/lib/number'; import type { PropsWithChildren } from 'react'; import { getGravatarUrl } from 'react-awesome-gravatar'; import { type Address, getAddress } from 'viem'; import { OgDataBox } from './og-data-box'; interface OgImageProps { id: Address; baseUrl: string; name: string; symbol: string; totalSupply: string; } export function OgImage({ id, name, symbol, totalSupply, baseUrl, children }: PropsWithChildren) { const avatarUrl = getGravatarUrl(getAddress(id), { default: 'identicon', size: 400, }); const imageUrl = new URL(EmptyOGImage.src, baseUrl).toString(); return (
{/* biome-ignore lint/nursery/noImgElement: */} Background

{name} ({symbol})

{/* biome-ignore lint/nursery/noImgElement: */} {name} {getAddress(id)}

{children}
); }