The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import Image from 'next/image'
interface Props {
caption: string
img: string
}
export default function Avatar(props: Props) {
const { caption, img } = props
const imageUrl = img.startsWith('http') ? img : '/images/blog/avatars/' + img
return (
<div className="align-center m-0 flex h-8 items-center gap-3">
<Image
src={imageUrl}
className="h-8 w-8 rounded-full object-cover text-center m-0"
alt={`${caption} avatar`}
width={32}
height={32}
/>
<figcaption
style={{ marginTop: 0 }}
className="text-foreground-lighter font-normal not-italic not-prose"
>
<p>{caption}</p>
</figcaption>
</div>
)
}