import React from 'react'; import type { Embed } from '@backspace/shared'; import { useUIStore } from '../../../stores/uiStore'; interface ImageEmbedProps { embed: Embed; } export function ImageEmbed({ embed }: ImageEmbedProps) { const openImagePreview = useUIStore((s) => s.openImagePreview); const imageUrl = embed.image ?? embed.url; return (
{embed.title openImagePreview(imageUrl)} />
); }