1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21import type { ElementType, Ref } from 'react'
import type { StaticImageData } from 'next/image'
import type { Media as MediaType } from '../../payload-types'
export interface Props {
src?: StaticImageData // for static media
alt?: string
resource?: string | MediaType // for Payload media
size?: string // for NextImage only
priority?: boolean // for NextImage only
fill?: boolean // for NextImage only
className?: string
imgClassName?: string
videoClassName?: string
htmlElement?: ElementType | null
onClick?: () => void
onLoad?: () => void
ref?: Ref<null | HTMLImageElement | HTMLVideoElement>
}