import { assetUrl } from '@/utils/asset-url' import { TldrawLink } from '../common/tldraw-link' export function Image(props: any) { const src = typeof props.src === 'string' ? assetUrl(props.src) : props.src const href = props.href ?? src return ( {props.title} {props.caption && ( {props.caption} )} {!props.caption && props.title && ( {props.title} )} ) }