import { isImageSource } from "../utils"; type WordImageProps = { value: string; label: string; }; export function WordImage({ value, label }: WordImageProps) { if (!value) { return null; } if (isImageSource(value)) { return ( {label} ); } return {value}; }