import { get } from 'radash' import { TextView } from '#components/Map' import type { Item } from '#types/Item' export const ProfileTextView = ({ item, dataField = 'text', heading, hideWhenEmpty, }: { item: Item dataField: string heading: string hideWhenEmpty: boolean }) => { const text = get(item, dataField) if (typeof text !== 'string') { throw new Error('ProfileTextView: text is not a string') } return (